Hi all, I am facing a fairly common error, but I’m unable to find a solution.
- Week 3 of course 1
After finishing the entire assignment correctly:
“Cell #8. Can’t compile the student’s code. Error: NameError(“name ‘g’ is not defined”)” this pops up, and Idk why.
please help
did you check what cell #8 has codes written where g is defined correctly?
not defined errors are usually either because you didn’t run down that cell, or you defined the g incorrect ( hard-coded the path)
I don’t know why but the cell numbers aren’t aligned in order.
1,2,3,4,5,53,12,13,14… more random etc
this numbering is because you might have re-run the cell after you did correction in the cell.
try clear kernel output, then restart kernel. run each cell from beginning one by one and then submit