Initial commit: basic exercises
[wordplay-cdsw-solutions] / solution_4.py
1 import scrabble
2
3
4 # Find words that match a**e*y.  
5
6
7
8 for word in scrabble.wordlist:
9     if len(word) == 6 and word[0] == 'a' and word[3] == 'e' and word[5] == 'y': 
10         print word
11             
12
13

Benjamin Mako Hill || Want to submit a patch?