AI Python for Beginners Module 2 Book Tracker grader issue (original) (raw)
Hi, I am doing exercise 2 of the book tracker. the output expected (“Book is not available to be borrowed”) is the same as my printed output, but the grader keeps saying:
“Failed test case: Detected incorrect number of valid print statements (without f-strings).
Grader expected: 2
You got: 0”
Can you advise what I am doing wrong? It seems that the grader is not recognising my print statements
Deminiko April 21, 2025, 4:22pm 2
Hi @raykjx
The error says that it is expecting 2 print statements, in the exercise, you must have 2 prints that will be shown with if/else statements, so the print must be triggered as a consequence of a condition, maybe is something related to that.
Hope it helps you!!!
raykjx April 22, 2025, 7:28am 3
Thanks for reaching out! I found the problem, my print statement had a spacing before the brackets. While the code run works, the grader is not recognising it. Thanks!