C1M1_Assignment

Exercise 1A: Passed - no issue
Exercise 1B: my output = expected output verbatim

In [6]
“test_your_code.exercise_1b()” resulted in
“Failed test case: There was no output for exercise 1b cell, check that you run it.
Grader expected: An output generated from print statements
You got: None”

Same thing happened with Exercise 2: my output matched the expected output but when I went to test the code I received the same error.

In [8]
“test_your_code.exercise_2(available_copies)” resulted in
“Failed test case: There was no output for exercise 2 cell, check that you run it.
Grader expected: An output generated from print statements
You got: None”

hi @KKV

make sure you have run down all the cells. your error is pointing that one of the cells before that failed test output was not run down.

Running each cell sequentially from beginning till end is must. in case you encountered an error or different output and you do some changes in the grade function cell where you write codes, you need to run that cell again before running down the subsequent test cell.

I did. The outcomes from my code match verbatim the expected outcomes and I run those before I run the test.

I presume I can start over by going to Kernel > Start & Clear Output

If you see my CIMI_Assignment_v2 file each cell is run in sequential order:
In [1]
In [2]
In [3] etc.

That’s what you’re referring to, correct?

the sequentially running is only when you have started the assignment but in case you made some changes and then again run the test cell, you won’t see the same number.

Yes you could try the clear out and restart kernel option, but then begin running the cell from beginning.

It will also help us, if you post a screenshot of what output you got by running the 1 b cell. share a screenshot and not copy paste. make sure you don’t post any part of the grade function code cell as it is against community guidelines.

1 Like

Hi @KKV,

Please make sure you are not adding spaces when writing the print statements.

What I mean is, do, print("My name is ....")

Don’t do this (notice the space between print and ( )
print ("My name is ....")

Best,
Mubsi

I went back and checked and I had no spaces.

This is now happening on C1M2 assignment. First exercise passed; second one got the expected outcome and receiving the same error.

Issue resolved: I had saved the file as a different version. If I used the original file, there was no error.

1 Like