Module 1 Assignment: Analyzing retail sales with Python - auto-grader not registering my answers

C3M1_Assignment
Module 1 Assignment: Analyzing retail sales with Python

I submitted this assignment several times but the grader is not able to grade any of my answers. The error for all exercises is:
“Unable to find object required for grading in your code.”

The Variable Inspector is showing all the variables with correct values and cell printouts match the expected printouts shown in the exercises.

I followed instructions to refresh the Coursera Jupyter Lab Environment

Started over and completed only exercise 1. In this exercise I have to complete only one line.
The line is:
num_observations =
the only thing I have to do is enter:
len(invoice_ids)
to complete the line:

GRADED CELL: Exercise 1

START CODE HERE

num_observations = len(invoice_ids)

END CODE HERE

print(num_observations)

The printout is 79.

I ran the rest of the cells in exercise 1 that require no more input from me and then submitted the assignment.

The grader output for “ex1: number of observations”:
“Unable to find object required for grading in your code.”

The Variable Inspector is showing:
NAME - num_observations
TYPE - int
SIZE - 28
CONTENT - 79

I am at a loss as to what to do next to be able to get this assignment graded.

Hi Orr, and welcome to the Forum! Did you rename your notebook by any chance? The grader will check the notebook with the original filename. If you didn’t, please send me your notebook via direct message. You can click my name then the blue Message button. Thanks.

Adding this reply I sent Chris for the record of this thread:

I renamed a previous version I worked on because it was in the instructions for refreshing the Coursera Jupyter Lab Environment but I deleted the renamed version and completed the new version with the same answers and had the same results of
“Unable to find object required for grading in your code.” for all exercises.

After seeing your reply I submitted the same notebook again just to try it once more before sending it to you and the grader gave it a full grade. The only difference was the few hours that passed.

1 Like