Skip to content

Instantly share code, notes, and snippets.

@ggrumbley
Created February 9, 2017 18:40
Show Gist options
  • Save ggrumbley/b3b57e17fce28368062608d1f3216bbf to your computer and use it in GitHub Desktop.
Save ggrumbley/b3b57e17fce28368062608d1f3216bbf to your computer and use it in GitHub Desktop.
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