Skip to content

Instantly share code, notes, and snippets.

@veiset
Created December 18, 2014 09:07
Show Gist options
  • Save veiset/e5ca1ffc86571030f141 to your computer and use it in GitHub Desktop.
Save veiset/e5ca1ffc86571030f141 to your computer and use it in GitHub Desktop.
from collections import Counter
with open('words.txt', 'r') as f:
print Counter(["".join(sorted(w.strip().lower())) for w in f]).most_common(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment