First time here? Checkout the FAQ!
x
0 votes
524 views
asked in Python by (120 points)  
# for key, value in dict.items():
            #     if value >= long:
            #         long = value
            #         long_name = key
            #     if value < short:
            #         short = value
            #         short_name = key
        long = max(dict.values())
        long_name = max(dict, key=dict.get)
        short = min(dict.values())
        short_name = min(dict, key=dict.get)
  

Please log in or register to answer this question.

...