X-Git-Url: https://projects.mako.cc/source/wordplay-cdsw-solutions/blobdiff_plain/715cf79efb1139d981e5716ed14f471fbeaddb2a..7b538ea99568eb4511b2b92e3f55193796017866:/solution_7.py 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)