Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. def SortDict():
  2.     global countdown
  3.     countdown=sorted(countdown.items(),key=lambda d:(d[1],d[0]))
  4.     res = "\n".join(("__{}__: {}".format(*i) for i in countdown.items()))
  5.     return res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement