Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_max_val_in_dict.py
- stats = {'a':1000, 'b':3000, 'c': 100}
- print max(stats, key=lambda key: stats[key])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement