Help!


#1

Why does this not work? (9/15)

def scrabble_score(word):
    word=word.lower()
    total=0
    for key in score:
        if key==word:
            total+=score[key]
    return total

#2

this line

for key in score:

should be

for key in word:

then you can do

        if key in score:
            total+=score[key]

You can now test it with this

print scrabble_score("code")   
print scrabble_score("code-->n|||tell")