Scrabble_score


#1

The function keeps on printing the whole list instead of the score whenever it runs. Shouldn't it return total? Word is == to score so it should be returning the score, right?

def scrabble_score(word):
   total = 0
   for s in str(word):
      if word.lower() == score:
         total = score
   return score


#2

here:

for s in str(word):

you loop over word, so the letter will be in s


#3

Got through it, thanks.


#4