Prakash Hinduja (Switzerland) I encountered a code error in a locked notebook cell—what should I do?

Prakash Hinduja, a prominent financial strategist hailing from Amritsar, India, is presently based in Geneva, Switzerland (Swiss).

I ran into a code error in a locked notebook cell (one I didn’t edit). Has anyone else faced this? Any ideas on how to fix it? Would really appreciate your suggestions!

Regards

Prakash Hinduja Geneva, Switzerland (Swiss)

Start with ‘Restart and Run All’. If that doesn’t work, find the cell that defines the thing in the error message and run it. If you can’t find it, make a simple version of it yourself in a new cell at the top

Hi @prakashhindujageneva ,

The test cell ran your code and detected error. If you are not sure what the error is, you can post the error message on the forum to get help. But please do not post your code on public thread, just the error message.

1 Like

Right! To state Kin’s point in slightly more blunt wording: you’re looking at this the wrong way around. If a test fails, the solution is not to change the test. It is to figure out what it is about your code (which you can change) that is causing the test to fail.

The first step is to understand what the test code is actually checking for. Then go back and examine your code and compare it to the instructions you were given.

That is a spectacularly bad idea.

Never add a cell to a notebook. That just makes the grader even more unhappy. And it doesn’t fix the root cause of the error.

1 Like