Created
February 9, 2017 18:40
-
-
Save ggrumbley/b3b57e17fce28368062608d1f3216bbf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from collections import Counter | |
with open('test.txt', 'r') as myFile: | |
data=myFile.read().replace('\n', '') | |
sorted = Counter(data) | |
print(sorted) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment