Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by kite.com #
 
PREVIOUS NEXT
Tagged: #python #find #highest #number #dictionary
ADD COMMENT
Topic
Name
2+8 =