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