I have searched for ways of grabbing an associated key based on a value, but most seem very complicated. It may be because I'm new at Python, but is there an easy way to get a key associated with a (max) value? For example:
d = {'one':1, 'two':2, 'three':3, 'four':4, 'five':5}
max(d.values())
will give 5.
How do I get the key associated with that value of '5'?