If I have a dictionary with their corresponding frequency values:
numbers = {a: 1, b: 4, c: 1, d: 3, e: 3}
To find the highest, what I know
numbers = {'a': 1, 'b': 0, 'c': 1, 'd': 3, 'e': 3} max_value = max(numbers.values()) [k for k,v in numbers.iteritems() if v == max_value]
prints
['e', 'd']
what it does is, loop over all entries via .iteritems and then check if the value is the maximum and if so add the key to a list.
.iteritems