Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f=dict(zip('abcdefghijklmnopqrstuvwxyz',[8.167,1.492,2.782,4.253,12.702,2.228,2.015,6.094,6.966,0.153,0.772,4.025,2.406,6.749,7.507,1.929,0.095,5.987,6.327,9.056,2.758,0.978,2.360,0.150,1.974,0.074]))
- s = "\qwertyuiop[asdfghjkl;'/zxcvbnm,. "
- rf={}
- lf={}
- for l in f:c=s.find(l);lf[s[c-(1,-10)[l=='a']]]=rf[s[c+1]]=f[l]
- print "ch freql freqr"
- for l in sorted(f.keys()+list("\;'[")):print l,''.join(("%0.3f"%x[l]).rjust(7)if l in x else' 0.000'for x in(lf,rf))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement