Word frequency count FIXED by gnibbler

import os,re
S=re.sub('[^\sa-z]','',os.read(0,9e3).lower()).split()
for c in sorted(set(S)):print S.count(c),c

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page