here2share

# b_max_val_in_dict.py

Sep 14th, 2020
1,097
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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])
RAW Paste Data