Created
August 28, 2018 14:00
-
-
Save idoushiki/bd70824c7687abf1198de822bcd05809 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fp=open("words.txt","r") | |
msg = fp.read().lower() | |
counter = {} | |
for c in msg: | |
if not c in counter: | |
counter[c] = 1 | |
else: | |
counter[c] += 1 | |
print(counter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment