Answers for "find out highest value in python dictionary"

3

python how to find the highest number in a dictionary

a_dictionary = {"a": 1, "b": 2, "c": 3}

max_key = max(a_dictionary, key=a_dictionary.get)
get key with max value


print(max_key)
Posted by: Guest on June-05-2020
0

Finding the largest value in dictionaires in python

max_key = max(a_dictionary, key=a_dictionary.get)
Posted by: Guest on April-22-2021

Code answers related to "find out highest value in python dictionary"

Python Answers by Framework

Browse Popular Code Answers by Language