9/15 'builtin_function_or_method' object is not iterable' error



It shows:

"Does your scrabble_score function take exactly one argument (a
string)? Your code threw a "'builtin_function_or_method' object is not
iterable" error."

I don't know why this code doesn't work. Can anyone please help me?
Thank you!

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


It should be:
word = word.lower()

instead of:
word = word.lower

and also, don't forget to add:
return total


Thank You!! It works now.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.