C4W1_Assignment Grading Issue

The test cases pass without any issues. However, after submitting for grading, I received the following strange error message. It seems to be an issue on the evaluation side. Any solutions?

Error:
There was a problem compiling the code from your notebook. Details:
invalid syntax (, line 166)

Just passing one set of tests is never a guarantee of passing the grader. It’s always possible that your code is not general in some way. But with that kind of fundamental syntax error, it’s also worth trying this as the first thing:

Kernel -> Restart and Clear Output
Save
Submit to grader

The point is that the grader does not need to see your output and sometimes the output can contain syntax that confuses the grader.

1 Like