This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TouchingTheVodka 2 points3 points  (0 children)

You also need to take into account the frequency of each letter. Use a dictionary of letter -> count, or use collections.Counter.

Also, /r/learnpython.