Module1, exercise 1B- Failed test case: There was no output for exercise 1b cell, check that you run it

Module 1, exercise 1B- I am getting this error code - ‘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’

I have cross checked the code with Chat GPT, reloaded the Kernel and updated the notebook, despite that it is showing the same issue.
Ans yes I ran the each line of the command every time I refreshed.
Any advice will be much appreciated.

2 Likes


some more screen shots of the notebook.

1 Like


The outcome is visible and is same to expected outcome. Even then getting the error message. Not sure why.

I’m not a mentor for that course, but here are some common issues.

  • Have you added, moved, or deleted any cells in the notebook?
  • Have you downloaded the notebook and worked on it in some other platform, then uploaded it back to Coursera?
  • Did you rename your notebook?
  • Did you run all of the cells starting from the top, every time you open it for editing?

Hi TMosh,

  • Have you added, moved, or deleted any cells in the notebook?- NO
  • Have you downloaded the notebook and worked on it in some other platform, then uploaded it back to Coursera?- NO
  • Did you rename your notebook? - YES, Because was encountering an error which despite correcting the code was not going away. So followed the steps to troubleshoot and renamed the notebook.
  • Did you run all of the cells starting from the top, every time you open it for editing?- yes , everytime.

Do you recommend changing back the name to the original one will fix this bug ?

You cannot grade a notebook that you have renamed.

The grader always uses the notebook with the original name. It does not matter which notebook you have open when you click on the Submit button.

So yes, you need to rename your notebook back to the original.

1 Like

Thanks. its sorted now.

2 Likes

Apparently, in your implementation of exercise_1 b(), you have only one statement inside the function, that’s what the error says!

If you have modified the original notebook, then it’s best to delete the current file ( or save it under another file name) and go to the question mark on the top right corner and “Get the Latest Version,” which will give you a fresh, reset copy.

1 Like

Hi @Sudheendran,

From your screenshot, it can be seen that you didn’t run the cells prior to the test cell.

Please read through these common mistakes made by beginner learners, and let me know if this helps you out.

Best,
Mubsi

1 Like

@Mubsi :


now this error is generated. Can you please check

1 Like

I’m going to DM you regarding this.

1 Like

@Mubsi : IB - All tests passed! Thank you so much for the timely input!!!

2 Likes

@Mubsi : I have submitted the Module 1 assignment. How much time will it take to grade. Please check your messages also on my query and confirm. Thank you.

1 Like

I have received All Tests Passed after each task - Module 1 Assignment (C1M1 Assignment). But score is not reflected properly. Please DM for details and guide.

1 Like

Note that the grader doesn’t use the test results that are provided inside the notebook.

The grader uses a totally different set of tests.

The notebook’s tests do not check for every possible error. So passing the notebook’s tests does not mean your code is perfect.

Please check your message box.

1 Like

Sorry, I’m not a mentor for this course.

If you want to get a new copy of the assignment, you have to delete or rename your current notebook first. Use the File menu options.

Then use the “Lab Help” tool and “Get latest version”.

Then exit the lab and re-enter it.

The “Get latest version” tool will only replace a missing file, it will not overwrite an existing one. This is why you first need to rename or delete your original notebook file.

1 Like

Thank you so much! It worked. Submitted fresh One and cleared!

2 Likes