"'dict' object is not callable" error


#1


https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/3?curriculum_id=4f89dab3d788890003000096#

Oops, try again. Does your scrabble_score function take exactly one argument (a string)? Your code threw a "'dict' object is not callable" error.

It should show the right result.Please help.What's wrong in the code!

def scrabble_score(word):
    a=word.lower()
    result=0
    for x in a:
        result=result+score(x)
    return result


#2

Is the dictionary named scores?

scores[x]

Note the subscript syntax.