What's the simplest way to the highest and lowest keys from a dictionary?
- by Jorge
self.mood_scale = {{'-30':"Panic"},{'-20':'Fear'},{'-10':'Concern'},{'0':'Normal'},{'10':'Satisfaction'},{'20':'Happiness'},{'30':'Euphoria'}}
I need to set two variables: max_mood and min_mood, so i can put some limits on a ticker.
What's the easiest way to get the lowest and the highest keys?