sort.py
for k, v in sorted(data.items(), key=lambda x:x[1], reverse=True): print "%s : %s" % (k, v)
Recommended Posts