Advertisement
Guest User

dict_max_oneliner

a guest
May 10th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def dict_max_oneliner(dico):
  2.     return {keys: dico[keys] for keys in dico.keys() if dico[keys] == max(values for values in dico.values())}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement