reworked these examples a bit based on feedback in class
[wordplay-cdsw-solutions] / solution_1.py
index fe18444bc69cb2012f831eabb0f33188f7d0e60c..40ad9f3740ed36b06410603c83df34f003829ddd 100644 (file)
@@ -1,7 +1,7 @@
 import scrabble
 
 import scrabble
 
-# Print every word that has 9 or more letters and starts with a.
+# Print every word that has 9 or more letters and starts with the letter "a"
 
 for word in scrabble.wordlist:
     if word[0] == 'a' and len(word) >= 9:
 
 for word in scrabble.wordlist:
     if word[0] == 'a' and len(word) >= 9:
-        print word
+        print(word)

Benjamin Mako Hill || Want to submit a patch?