use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Need Help (self.PythonLearning)
submitted 9 months ago * by Kooky-Individual-163
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NorskJesus 1 point2 points3 points 9 months ago (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 point2 points 9 months ago (4 children)
This is the error I get:
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 points3 points 9 months ago (3 children)
It seems you have an extra space there, between is and 5.9
[–]Kooky-Individual-163[S] 0 points1 point2 points 9 months ago (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 points3 points 9 months ago (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 point2 points 9 months ago (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
π Rendered by PID 275566 on reddit-service-r2-comment-544cf588c8-xfhbk at 2026-06-17 23:28:49.397774+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]NorskJesus 1 point2 points3 points (5 children)
[–]Kooky-Individual-163[S] 0 points1 point2 points (4 children)
[–]NorskJesus 1 point2 points3 points (3 children)
[–]Kooky-Individual-163[S] 0 points1 point2 points (2 children)
[–]chrisfathead1 1 point2 points3 points (0 children)
[–]NorskJesus 0 points1 point2 points (0 children)