Failed test case even if matches with expected results

My answer matches with the expected output and still getting less scores when I submit it.Please help!

To Kill a Mockingbird is currently unavailable. 
You can request it from the library


Expected Output:

To Kill a Mockingbird is currently unavailable. You can request it from the library.

what does the grader feedback provides information?

please post screenshot of your grader feedback without posting any codes.

Try clear kernel output and reconnect kernel and re-run the cells till end and then submit if you are confident of codes being correct. Chances are the changes you did might have not got saved when you submitted the assignment for grading.

I have the print statement

Failed test case: Missing correct printed message. Expected: To Kill a Mockingbird is currently unavailable. You can request it from the library., but got: an incorrect message.

can you confirm if you have selected the right specialisation and course category as your query doesn’t seems to be from pytorch fundamentals module 1 week 1 assignment.

please change it right category

I agree with Deepti that I don’t remember this from PyTorch Course 1. But programming is a game of nitpicking. Compare your answer and the Expected Value. Note that there is a trailing period on the Expected Output, but not in your output. If the grader is doing a literal string compare, that difference would “throw”.

Hi @Prat2pv,

As everyone pointed out, your query is not from the PyTorch professional certificate, but from AI Python for Beginners. I have moved your post accordingly.

And as for your output, as Paul pointed out, (1) you don’t have a period at the end of the second sentence. (2) But more importantly, as you have shared, the. expected output is all in one line, but your output is in two lines.

1 Like