Advertisement
here2share

# b_max_val_in_dict.py

Sep 14th, 2020
1,518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. # b_max_val_in_dict.py
  2.  
  3. stats = {'a':1000, 'b':3000, 'c': 100}
  4. print max(stats, key=lambda key: stats[key])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement