This will basically iterate through every “key”, and “.get” function is similar to using ”[]“. So you basically say “Use scores dictionary, and key values are scores[]“
Code
Returns
Based On
max(scores.values())
88 (Number)
Math
max(scores)
”Zack” (String)
Alphabet
max(scores, key=scores.get)
”Harry” (String)
Math
.get()
It can be used to select items in a dictionary like my_dict["Harry"], but won’t break the code if that item is non existent, it will return ‘None’