Exercise: Find maximum key in dictionary
Use the
max()
function to get the maximum key in the dictionary.dict = {
'c': 3,
'a': 1,
'd': 5,
'b': 2
}
### adjust code here ###
max_key =
print(max_key) # expected d
Python
Setting up Python environment...
Output