belongs to collection: Python Dictionary Exercises
sample_dict = { 'Physics': 82, 'Math': 65, 'history': 75 }
Expected output:
Math
Hint:
Use the built-in function min()
min()
Solution:
sample_dict = { 'Physics': 82, 'Math': 65, 'history': 75 } print(min(sample_dict, key=sample_dict.get))
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Hint:
Use the built-in function
min()
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer