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


#1



I have the result as "done"


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


Replace this line with your code.


#2

what exactly is your question?


#3

hi

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


#4

you should call the function:

print scrabble_score(word)

functions only execute when you call them.


#5

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