9.scrabble_score


#1

https://www.codecademy.com/courses/learn-python/lessons/practice-makes-perfect/exercises/scrabblescore


<In what way does your code behave incorrectly? Include ALL error messages.>
Traceback (most recent call last):
File “python”, line 13, in
File “python”, line 10, in scrabble_score
KeyError: 0


I don’t understand what this error means and why my code doesn’t work. Can anyone help?

```python

Replace this line with your code.

<do not remove the three backticks above>

#2

The keys in the scores dictionary are alpha, not numeric. There is no key 0.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.