1d = {"A":3, "B":1, "C":100}
2
3# find key with lowest value
4best_key = min(d, key=d.get)
5
6print(best_key)
7# output: B
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