Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import collections
- d = collections.Counter()
- letter = 0
- myfile = open('output_text1.txt')
- for line in myfile:
- line = line.rstrip('\n')
- for c in line:
- d[c] += 1
- letter += 1
- print (d)
- print(letter)
- myfile.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement