projects
/
wordplay-cdsw-solutions
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reworked these examples a bit based on feedback in class
[wordplay-cdsw-solutions]
/
solution_4.py
diff --git
a/solution_4.py
b/solution_4.py
index c1e72aefa1e89687a874c4dcfb1c93f55584e7a5..ee712315ceea10b0f0b39cc67cc641d054dab75b 100644
(file)
--- a/
solution_4.py
+++ b/
solution_4.py
@@
-1,13
+1,7
@@
import scrabble
import scrabble
-
-# Find words that match a**e*y.
-
-
+# Find words that match a**e*y.
for word in scrabble.wordlist:
for word in scrabble.wordlist:
- if len(word) == 6 and word[0] == 'a' and word[3] == 'e' and word[5] == 'y':
- print word
-
-
-
+ if len(word) == 6 and word[0] == 'a' and word[3] == 'e' and word[5] == 'y':
+ print(word)
Benjamin Mako Hill
||
Want to submit a patch?