# UPDATE:Sorting a list from a for output from highest to lowest in python
for x in sorted(frequency, key=lambda y: frequency[y]/float(n), reverse=True):
    print x,frequency[x],frequency[x]/float(n)

0f1533cf0024f18849b1d39b25febe26592af7a0
# UPDATE:Sorting a list from a for output from highest to lowest in python
for x in sorted(frequency, key=lambda y: frequency[y]/float(n), reverse=True):
    print x,frequency[x],frequency[x]/float(n)
