public
Created

  • Download Gist
shiny.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.