how to find a max value in aayyar in python code example
Example 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'
Example 2: max function python
max([2, 1, 4, 3])