Answers for "get the maximum value of list disctonary in python"

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
0

finding the maximum value in a list python

arr = [0, 1, 2, 3]
maximum_value = max(arr)
print(maximum_value) #should print 3
Posted by: Guest on August-09-2021

Code answers related to "get the maximum value of list disctonary in python"

Python Answers by Framework

Browse Popular Code Answers by Language