Exercise: Find minimum value in dictionary
Use the
min()
function to get the minimum value in the dictionary. Hint: We don't want the minimum of the dictionary keys.dict = {
'apple': 3,
'banana': 1,
'cherry': 5,
'strawberry': 2
}
### adjust code here ###
min_val =
print(min_val) # expected 1
Python
Setting up Python environment...
Output