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
Perhaps you could explain what you mean by "wrong" that's not at all descriptive!
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
for lett in word: