Skip to content

Instantly share code, notes, and snippets.

@pliniosilveira
Forked from pozhidaevak/letterFrequency.py
Last active April 20, 2020 18:32
Show Gist options
  • Save pliniosilveira/333d0f4eaf07cc05f15d18903de63a60 to your computer and use it in GitHub Desktop.
Save pliniosilveira/333d0f4eaf07cc05f15d18903de63a60 to your computer and use it in GitHub Desktop.
Python dict with English letter frequency
englishFreq = {
'e': 0.12702,
't': 0.09356,
'a': 0.08167,
'o': 0.07507,
'i': 0.06966,
'n': 0.06749,
's': 0.06327,
'h': 0.06094,
'r': 0.05987,
'd': 0.04253,
'l': 0.04025,
'u': 0.02758,
'w': 0.02560,
'm': 0.02406,
'f': 0.02228,
'c': 0.02202,
'g': 0.02015,
'y': 0.01994,
'p': 0.01929,
'b': 0.01492,
'k': 0.01292,
'v': 0.00978,
'j': 0.00153,
'x': 0.00150,
'q': 0.00095,
'z': 0.00077
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment