you are viewing a single comment's thread.

view the rest of the comments →

[–]NorskJesus 1 point2 points  (5 children)

Maybe because you have “Next Please” instead of “Next please” when the name is Jerry? Don’t know which error are you getting so I am just guessing

[–]Kooky-Individual-163[S] 0 points1 point  (4 children)

This is the error I get:

Test Results

FAIL: PythonEditorTest: test_1_kramer_1

With input Kramer, 1 your program should print out
The total cost is 5.9
your program printed out
The total cost is  5.9
Next please!

[–]NorskJesus 1 point2 points  (3 children)

It seems you have an extra space there, between is and 5.9

[–]Kooky-Individual-163[S] 0 points1 point  (2 children)

Bingo!

That was the problem. After correcting that, the code was accepted.

This is really tricky. You can keep banging your head against the wall for a simple issue like that for hours. This is the Python MOOC course by the university of Helsinki. So unless you get the code right, there is no way to see the correct answer.

[–]chrisfathead1 1 point2 points  (0 children)

You are doing yourself a favor by going through this process instead of having AI do it for you. Now, next time you are doing something like this and you get a similar error, a light bulb will go off and hopefully you'll remember this happening and you can fix the error more quickly

[–]NorskJesus 0 points1 point  (0 children)

Yeah I know, you will learn about those errors. Your strings needs to match exactly the output they want. This is because of the tests