Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def SortDict():
- global countdown
- countdown=sorted(countdown.items(),key=lambda d:(d[1],d[0]))
- res = "\n".join(("__{}__: {}".format(*i) for i in countdown.items()))
- return res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement