9/15 What is wrong?


#1
def scrabble_score(word):
    total_score = 0
    while char in word:
        count = len(word)
        if count >= 0:
            total_score += score['char'] 
            count -= 1
    return total_score

#3

Perhaps you could explain what you mean by "wrong" that's not at all descriptive!


#4

well,the way ur getting key values...total_score+=score['score'].,,is i'thnk creating prblm
to make it easy use .get(key,value) function
def scrabble_score(word):
word=word.lower()
res=0
for lett in word:
res+=score.get(lett,0)
return res