X-Git-Url: https://projects.mako.cc/source/wordplay-cdsw-solutions/blobdiff_plain/d57af8e41dd0a0a46fc411ad2488d029244921e1..HEAD:/solution_7.py?ds=sidebyside diff --git a/solution_7.py b/solution_7.py index 61cb133..7b89fa3 100644 --- a/solution_7.py +++ b/solution_7.py @@ -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)