DLS C5 W2 A2 Emojify : Grader Error

Cell #24. Can’t compile the student’s code. Error: IndexError(‘list index out of range’,)

I passed all the tests and am unable to detect the error. I tried refreshing the workspace and updating the lab to the latest version but then it shows this error instead

Cell #12. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for -: ‘NoneType’ and ‘float’”,)

On refreshing and updating again, it went back to the original error. Would you please help me resolve this issue.


Be sure that you complete the entire assignment before you submit it for grading.

Leaving any “None” statements that you’re expected to replace with your own code will cause the grader to crash.

Passing all the tests does not prove your code is perfect. The tests do not catch all possible errors in your code.