-
-
Save codecademydev/a6f20114746052cf50d316a4af23d115 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def max_key(my_dictionary): | |
for key, value in my_dictionary.items(): | |
if value == max(my_dictionary.values()): | |
return key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment