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_3.py
diff --git
a/solution_3.py
b/solution_3.py
index a3ea28d4f9e7f5c7cf7398362694c5700b9bc0c9..4916f57f01eb6abbd2d4214c580415ba9a4344a0 100644
(file)
--- a/
solution_3.py
+++ b/
solution_3.py
@@
-1,12
+1,6
@@
import scrabble
import scrabble
-
-# Find all the words that end in 'nge'
-
-
+# Find all the words that end in 'nge'
for word in scrabble.wordlist:
if word[-3:] == 'nge':
for word in scrabble.wordlist:
if word[-3:] == 'nge':
- print word
-
-
-
+ print(word)
Benjamin Mako Hill
||
Want to submit a patch?