reworked these examples a bit based on feedback in class
[wordplay-cdsw-solutions] / idea_5.py
1 # 5. Find and print the words that have all 5 vowels in alphabetical order.
2
3 import scrabble
4
5 vowels = ["a", "e", "i", "o", "u"]
6
7 for word in scrabble.wordlist:
8     found_vowels = []
9
10     for letter in word:
11         if letter in vowels:
12             found_vowels.append(letter)
13
14     if found_vowels == vowels:
15         print(word)
16

Benjamin Mako Hill || Want to submit a patch?