Skip to content

Instantly share code, notes, and snippets.

@mtimkovich
Created May 21, 2022 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtimkovich/93abada37672ca42829a405b26a8c86d to your computer and use it in GitHub Desktop.
Save mtimkovich/93abada37672ca42829a405b26a8c86d to your computer and use it in GitHub Desktop.
#!/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