I create this code, and thought it's good to use. But when I running code, shows out
Traceback (most recent call last):
File "python", line 19, in
File "python", line 14, in scrabble_score
TypeError: 'unicode' object is not callable
Hope somebody can help me out.
word = raw_input("Enter a word:") print word def scrabble_score(word): w = word.lower() s = 0 i = 0 while i < len(w): s += score[w(i)] i += 1 return s