Source Code:
(back to article)
my_dict = {'a': 1, 'b': 2, 'c': 3} max_key = max(my_dict, key=my_dict.get) print(max(my_dict.items(), key = lambda x: x[1]))
Result:
Report an issue