Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. # sorting in dictionary
  2. Sorted(mydict.items(), key=lambda x: x[1], reverse=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement