Skip to content

@drx /shiny.py
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.