Word frequency count FIXED by Defenestrator

import re,sys\x0d
f={}\x0d
for w in re.sub('[^a-z ]','',sys.stdin.read().lower()).split():f[w]=f.setdefault(w,0)+1\x0d
for k in sorted(f.keys()):print f[k],k

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

download

return top