Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@drx /shiny.py
Created Aug 10, 2012

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
Something went wrong with that request. Please try again.