C5_W2_Emojify_V3a

I’m getting this from the grader output
Cell #13. Can’t compile the student’s code. Error: KeyError(‘never’,)

however all tests passed within the notebook
and this is Cell13

I believe you’re using an incorrect word to initialize the size of the avg variable.

If I recall correctly the hint tells you to use the variable “any_word”, that’s why they provided it in the notebook.

The grader uses a different set of test data, and it doesn’t include the “never”.

I’m already using “any_word”

At first glance, that looks fine. Did you perhaps rename the notebook file?
The grader doesn’t like that.

Also, please don’t post your code on the forum unless a mentor asks to see it. That’s not allowed by the community standard.

You might find this thread useful.