how to prioritize a variable (Python) : Okay so I have been having a problem making a variable prioritized without anything to do with length. I want D to be prioritized because it his the highest variable then after I want it to prioritize C so on and so on, until it reaches 80 

I've only seen example so far about using max() which is not what I need

    a = 60
    b = 30
    c = 50
    d = 20

so i want it to select the 20 D then the 50 C then 10 B