import scrabble
-
-# Find the most valuable word in the dictionary using a double-loop.
-
+# Find the most valuable word in the dictionary using a double-loop.
max_score = 0
max_word = ''
for char in word:
score = score + scrabble.scores[char]
if score > max_score:
- max_word = word
- max_score = score
+ max_word = word
+ max_score = score
print max_score
print max_word
-
-