I am getting the following error:
Cell #14. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for +=: ‘NoneType’ and ‘NoneType’”)
What does cell # refer to (I do not have a cell #14? Is is the 14th code cell? when I execute by running each individual cell, the code works well. The submission is failing. Any advice to resolve this?
Ravi
I am also having issues completing this course, all tests say passed, but grading shows an error in cell 14 and shows a syntax error. When comparing with others issues I’ve seen online, mine seems to show “initial_b = 0.and” and I cannot remove the “and” that seems to be causing the issue. I’ve attempted to restart the session, restart the kernel and clear all cells, and continue to run into this error. Please assist with this. Thanks!
Note that the image you posted is from one of the notebook tests, which is throwing the syntax error. So your statement "“all tests say passed” is not true.
The ‘and’ should not be there at all. initial_b is a scalar floating point value. Somehow that cell has been modified.
What platform are you using the the course (the DL.AI Learning Platform or Coursera)?
Once I know that, i can check the appropriate repo and see if has the same error.
Delete your notebook and get a fresh copy, and start over. How you do that depends on what platform you’re using.
Or, you can use the instructions at the bottom of the notebook that tell you how to unlock a cell you can edit it. Then you can delete the incorrect “.and” text.
Hey @TMosh , thank you for your help, editing the metadata to remove the “and” got everything to work and grade properly. What I meant by all tests passed, was any cells that say that after running all were passed where edits were needed. I am currently running in Safari on a Mac running Tahoe (26.3.1), if that helps any. Very odd that the uneditable cell would have that added to it, but again, thanks for the assist and have a great day!