in the console

File "python", line 7

scrabble_score(word):

^

SyntaxError: invalid syntax

the error message

Oops, try again. Did you create a function called scrabble_score? Your code threw a "global name 'scrabble_score' is not defined" error.

the total should add up the word but its not

```
score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,
"f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,
"l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,
"r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4,
"x": 8, "z": 10}
scrabble_score(word):
total = 0
for x in word:
for x in "a":
total = total + 1
for x in "b":
total = total + 3
for x in "c":
total = total + 3
for x in "d":
total = total + 2
for x in "e":
total = total + 1
for x in "f":
total = total + 4
for x in "g":
total = total + 2
for x in "h":
total = total + 4
for x in "i":
total = total + 1
for x in "j":
total = total + 8
for x in "k":
total = total + 5
for x in "l":
total = total + 1
for x in "m":
total = total + 3
for x in "n":
total = total + 1
for x in "o":
total = total + 1
for x in "p":
total = total + 3
for x in "q":
total = total + 10
for x in "r":
total = total + 1
for x in "s":
total = total + 1
for x in "t":
total = total + 1
for x in "u":
total = total + 1
for x in "v":
total = total + 4
for x in "w":
total = total + 4
for x in "x":
total = total + 8
for x in "y":
total = total + 4
for x in "z":
total = total + 10
return total
```