Skip to content

Instantly share code, notes, and snippets.

@sebgod
Created April 27, 2014 06:51
Show Gist options
  • Save sebgod/11339205 to your computer and use it in GitHub Desktop.
Save sebgod/11339205 to your computer and use it in GitHub Desktop.
filters words with vowels from scrabble word list
vowels = set('aeiouy')
with open('TWL06.txt') as file:
for line in file:
word = line.strip().lower()
letters = set(word)
if vowels <= letters:
print word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment