reworked these examples a bit based on feedback in class
[wordplay-cdsw-solutions] / solution_7.py
index 61cb133795aefc14d9764896503dba58b817bba3..7b89fa399ba88ed91a4ff5f471585c776d26f629 100644 (file)
@@ -4,6 +4,7 @@ import scrabble
 
 max_score = 0
 max_word = ''
+
 for word in scrabble.wordlist:
     score = 0
     for char in word:
@@ -12,5 +13,4 @@ for word in scrabble.wordlist:
         max_word = word
         max_score = score
 
-print max_score
-print max_word
+print(str(max_score) + " : " + max_word)

Benjamin Mako Hill || Want to submit a patch?