Skip to content

Instantly share code, notes, and snippets.


jezinka/ Secret

Last active Jul 18, 2017
What would you like to do?
f = open('2.txt', 'r')
histogram = {}
file =
for char in file:
if char != '\n':
if char in histogram.keys():
histogram[char] += 1
histogram[char] = 1
print histogram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment