Unable to pass the "C2_W1_Assignment" assignment

Hello community,

While submitting the #C2_W1_Assignment, I failed despite following all the instructions provided by the instructor. I passed all the unit tests and even refreshed my workspace three times to get a new lab notebook, but I still can’t pass the submission and I’m stuck.

Any advice would be greatly appreciated.

Just passing one set of tests does not prove that your code is fully correct. The graders frequently use different test cases, so the most common cause for this scenario is writing your code in a way that is not general. E.g. hard-coding dimensions or referencing global variables from within the body of your functions.

If those suggestions are not enough to help you get to the next step, we probably need to look at your code. We can’t directly see your notebooks and it’s against the rules to show your code on a public thread, but there are private ways to do this. Please check your DMs for a message from me about how to proceed.

1 Like

When you “got a new version”, did you first delete or rename your original notebook file?

The “Get latest version” tool will only replace a missing file - it will do nothing if the notebook file already exists using the original name.

1 Like

Thanks Tom,

I didn’t notice it in my earlier attempts, but I managed to resolve it eventually. There was also a syntax error in some cells, and fixing both issues helped me pass the assignment and move on to the next step. I truly appreciate your kind support.h

1 Like