Hi....Below is my code:
It outputs the correct value but it always throw the error saying:
Enter a word with no spaces: Hi
Oops, try again. Your function fails on scrabble_score("DuNe"). It returns "2" when it should return "5"
Later I added the line to make the string lower case inside the function scrabble_score and it doesn't throw the error now...
Why did it throw the error when "string = string.lower()" added outside the function and it did not when added "word = word.lower()" inside the function?
Please someone help here....