Skip to content

Instantly share code, notes, and snippets.

@drx
Created August 10, 2012 07:53
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 drx/3312472 to your computer and use it in GitHub Desktop.
Save drx/3312472 to your computer and use it in GitHub Desktop.
words = open('/usr/share/dict/words', 'r').read().split('\n')
i = 0
for word in sorted(words, key=lambda word: len(word), reverse=True):
if all(map(lambda l: l in 'qwertasdfzxcv', word)):
print word,
i += 1
if i >= 100:
print '\n'
break
i = 0
for word in sorted(words, key=lambda word: len(word), reverse=True):
if all(map(lambda l: l in 'uiphjklmn', word)):
print word,
i += 1
if i >= 100:
print
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment