[ create a new paste ] login | about

Link: http://codepad.org/RyobPnHY    [ raw code | output | fork ]

Python, pasted on Dec 9:
1
2
3
d = {"one": [(1,3),(1,4)], "two": [(1,2),(1,2),(1,3)], "three": [(1,1)]}
for k in sorted(d, key=lambda k: len(d[k]), reverse=True):
        print k,


Output:
1
two one three


Create a new paste based on this one


Comments: