I am newbie to python and when i try to try this exercise i am getting an error Your function fails on scrabble_score(“pie”). It returns “None” when it should return “5”. Please let me know what is wrong, when i try in pycharm it does not display any none .
def scrabble_score(word): result=0 for i in word: i = i.lower() if i in score.keys(): result += score[i] print result
Thanks in advance