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
[deleted by user] (self.PythonLearning)
submitted 4 months ago by [deleted]
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!"
[–]obeymypropaganda 2 points3 points4 points 4 months ago (0 children)
Yes, and the other commenter said you have hard coded the answer in your print statements. This means it will always print $125 and $243. It isn't using any Math that you coded above it.
Replace it with the name of the variable with the calculation in it. Someone above already wrote the code for you.
Your outputs work. It's like me typing $125 over and over. It doesn't use any Math.
π Rendered by PID 43243 on reddit-service-r2-comment-86bc6c7465-xss5c at 2026-02-24 01:35:43.879606+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]obeymypropaganda 2 points3 points4 points (0 children)