9.scrabble score - as a result i have "no" not numbers


I have the result as "done"

word = raw_input("Enter a word: ")
def scrabble_score(word):
    for i in word.lower():
        if i in score:
    return point

Replace this line with your code.


what exactly is your question?



when i will write some words I should have count I should got some numbers in the console for example "12" etc.. but i got "None"
i have no idea how change my code to get this in the console. Thanks


you should call the function:

print scrabble_score(word)

functions only execute when you call them.


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