Name: Jhonson 2011-03-09 5:06
Can you help me write a program that finds what lowercase symbols are used most in a binary file?
f = open('<your file>', 'rb')
h = {}
for c in f.read():
if 'a' <= c <= 'z':
if c not in h: h[c] = 0
h[c] += 1
print sorted([(h[c], c) for c in h])