Resolved scrabble problem


def scrabble_score(word):
TotalScore = 0
for letter in word:
TotalScore += score[letter.lower()]
return TotalScore

No mater what I do, it always returns this:
File "python", line 7
def scrabble_score(word):
SyntaxError: invalid syntax

I tried a number of different codes, but all of them returned the same thing. I don't know if the first line is actually the problem. If you could please reply with a solution, that would be greatly appreciated. Thank you.


Please give us the FULL code you are using....
line 7 being line 1 in your post ???


Never mind, I've got it.