Created
May 21, 2022 17:43
-
-
Save mtimkovich/93abada37672ca42829a405b26a8c86d 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
#!/usr/bin/env python | |
from collections import Counter | |
import fileinput | |
counter = Counter() | |
for line in fileinput.input(): | |
counter.update(c for c in set(line) if c.isalpha()) | |
print(counter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment