C3W1_Practice_Assignment:There was a problem compiling the code from your notebook. Details: name '_' is not defined


Hi,
I have passed all the tests in the assignment, but it always shows ‘There was a problem compiling the code from your notebook. Details: name ‘_’ is not defined’ whenever I upload my assignment for grading. Could someone kindly tell me why?
Best,

Hi @Yiling_Ding

You probably added some cell which prevents the grader to complete the grading. That cell probably has a variable named "_". Please check for "_" usage in your code.

Cheers

I have checked all variable, but there is no such "_"usage.

When the grader gets unhappy about something unexpected in your notebook, it tends to throw confusing and misleading error messages.

I think that’s the situation here.

Did you add any cells to the notebook, or delete any cells by accident and then try to restore them?

Does your notebook have a lot of added print() statements?