1# Basic syntax:
2key_with_max_value = max(dictionary, key=dictionary.get)
3
4# Note, to get the max value itself, you can do either of the following:
5max_value = dictionary[max(dictionary, key=dictionary.get)]
6max_value = max(dictionary.values())
7
8# Example usage:
9dictionary = {"a": 1, "b": 2, "c": 3}
10max(dictionary, key=dictionary.get)
11--> 'c'
1d = {'A': 4,'B':10}
2min_v = min(zip(d.values(), d.keys()))
3# min_v is (4,'A')
4
5max_v = max(zip(d.values(), d.keys()))
6# max_v is (10,'B')
7