I got this error: Oops, try again. Did you create a function called scrabble_score? Your code threw a "global name 'scrabble_score' is not defined" error.
I know my code is probably wrong on multiply levels but I specifically want to know why it's saying "global name 'scrabble_score' is not defined", I like to think I at least know how to define a function.
def scabble_score(word): total=0 for key in word: if word[key]==score[key]: total+=score[key] return total