Quest 1B failed test even though result are displayed correctly

Failed test case: Detected incorrect number of valid print statements with f-strings.
Grader expected: 4
You got: 3

i get this fail, while my results displayed are correct. what have I done wrong?

Me:
Title: Brave New World
Author: Aldous Huxley
Published: 1932
Available Copies: 4

#### Expected Output:
​
```
Title: Brave New World
Author: Aldous Huxley
Published: 1932
Available Copies: 4

@Debby1

in 1b codes with instructions it mentions

REPLACE print(f"Title: {# Add your code here}"

so for all the 4 code statement did you add the print statement it was mentioned?

your feedback is statement one of the code is missing either the print statement with f string

yes, I have the code statements for all 4 variables, hence getting this print result correctly:

Title: Brave New World
Author: Aldous Huxley
Published: 1932
Available Copies: 4

ex 3 also gives me an error, in which it is said that i made a (spelling) error in the text. However, from the error message you can see that the text matches the desired outcome.

Failed test case: Incorrect value for requested_book.
Grader expected: To Kill a Mockingbird
You got: To kill a Mockingbird. Please make sure you are using uppercase and lowercase letters where needed. Also, check for typos

Failed test case: Missing correct printed message.
Grader expected: To Kill a Mockingbird is currently unavailable. You can request it from the library.
You got: An incorrect message. Please make sure you are using uppercase and lowercase letters, and adding a period/full stop (.) where needed. Also, check for typos

can you DM me the codes you wrote?

please click my name and send me screenshot of the codes you wrote.

it says your public profile is hidden. i will try other ways to DM you

1 Like

let me ping you in DM wait.

@Debby1

in the exercise 1b codes the print statement for available copies, there is an extra space between print and the (f”string)

your earlier 3 print statment written as

print(f”statement code")

but for available copies you wrote

printextra_single_space_left(f”statement code”)

remove that extra space, re-run the codes and pass 1b test.

for exercise 3, send code screenshot in the DM

good luck!

Regards

DP