TotalScore = 0
for letter in word:
TotalScore += score[letter.lower()]
No mater what I do, it always returns this:
File "python", line 7
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.