i have this long and ugly else if statement in python, is there a way to condense it into a shorter block of code maybe on one line or two if possible because it seems like there would be a way of shortening a piece of code like this
if p == "A": y = 10
elif p == "B": y = 11
elif p == "C": y = 12
elif p == "D": y = 13
elif p == "E": y = 14
elif p == "F": y = 15