Answers for "get the max value of dictionary of tuples"

1

find the max value in dictionary python

my_dict = {'a': 5, 'b': 10, 'c': 6, 'd': 12, 'e': 7}
max(my_dict, key=my_dict.get) # returns 'd'
Posted by: Guest on October-10-2020

Code answers related to "get the max value of dictionary of tuples"

Python Answers by Framework

Browse Popular Code Answers by Language