eltneg

max in dict

May 8th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. dict_maxx = lambda _dict: {
  2.     key:value for key, value in _dict.items()\
  3.     if value == max(_dict[key] for key in _dict)
  4. }
Advertisement
Add Comment
Please, Sign In to add comment