Scrabble_score Error


#1



https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/3


Oops, try again.
Does your scrabble_score function take exactly one argument (a
string)? Your code threw a "'int' object has no attribute 'getitem'"
error.


I can't see why I'm getting this error? Any help is very much appreciated.


entry = raw_input("What is your word? ")

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


#2

Sorry guys I got it. My total score variable name 'score' was the same as the dictionary.


#3

score = 0
score[letter]

this not have means. int not have index.

and i think you change the code, click on reset code and then try again.