Course 1 Week 2 optional assignment - Numpy Python Basics

Hi, this is my first programming assignment, I am having all test passed in all exercises, but my grade is still 63/100… No idea what is missing since all the tests are really basic and the grader dont give any help, this is the message the grader is giving me:

[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W2A1/Python_Basics_with_Numpy.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
Tests failed on 3 cell(s)! These tests could be hidden. Please check your submission.

Please note that you posted this in “General Discussion”. This Discourse forum supports at least 5 different specializations at this point, so you’re more likely to have your question noticed by the right team if you post it in the course specific areas. I moved it for you to Deep Learning Specialization - Course 1, by using the little “edit pencil” tool on the title.

Sorry that the graders here sometimes do not give useful feedback. We have pointed this out to the course staff, but apparently this is an inherent limitation of the platform from Coursera.

But as a general matter, it’s hard to write test cases that catch all possible errors. As an example of the type of error that will pass the notebook test cases, but fail the grader:

If you reference the global variable that happens to be passed as input to the function for the particular test case from within the body of the function instead of using the “formal parameter” that is passed in.

If that doesn’t shed any light, let me know.

Hi, I could not understand your explanation. It would be easier if you could see my code, is it possible? Not sure what you mean by “formal parameter” or the global variable.

I followed the instructions writing the code only on the required areas and the successful results makes full sense to me, I hope you really can help with this matter because I do not think debugging the test form is going to be really productive to learning the course subject.

Are you saying that you don’t know the definition of a “global variable” or just that you don’t see how the idea applies in these particular cases? If the former, it is important to mention that this is not a beginning programming course. You need pretty solid competence in python to succeed here. This course is not set up to teach you that. You might want to take a python course first. There are several good ones available on Coursera.

I will contact you by “direct message” to discuss further.

1 Like

I had the same issue. kept getting 63. No global variables, etc. I did a Restart and Clear All Output in the Kernel and submitted without generating any output. Scored at 100 after that.

1 Like

Thanks for the report. So that evidence suggests that your code was correct, but there was something wrong with the runtime state of your notebook. That strategy of clearing the output and resubmitting is always worth trying: the point is that the grader doesn’t need to see your output. It only needs to call your functions and check the results.