The submission shows an incorrect case in Exercise 4 but that particular cell output shows correct results for the case.
The grader uses different test cases than the ones in the assignment.
Passing the built-in tests does not prove your code is perfect.
Is there a way to find which test cases are failing? Or, are we supposed to debug without it? The submission feedback is not really helpful!
Please post a screen capture image that shows the grader’s feedback.
I’m not a mentor for this course, so this is just general advice:
Check over your code, and see if you are using any global variables that may exist only inside the notebook.
Appreciate you trying to help but actually there is no global variable! And, the notebook cell shows the correct output for a single category unsafe case as shown here:
Input: 'unsafe\nS2'
Output: {'classification': 'unsafe', 'categories': ['s2']}
OK. I don’t have any other ideas.
Hello,
If you read how the unsafe categories should be parsed, you will probably find the error.
categories should be capitalized.

![]()
