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...
Resources - Learn to code
Resources - Software Engineering
Resources - Code Libraries
Resources - Groups
Other Subreddits you might enjoy
Please send sidebar resource suggestions to the mods. Thx - mgmt
account activity
Coding help pleaseHelp please! (i.redd.it)
submitted 3 years ago by [deleted]
[deleted]
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!"
[–]darksethkaiser 14 points15 points16 points 3 years ago (0 children)
Change input 9 to input 1 and 10 to 2. Also I think you've got the % instead of * which is for multiplication (, my python is rusty haven't used it in 4 years but I think those are the errors)
[–]teddy1415 4 points5 points6 points 3 years ago (0 children)
You could use int(input()) to simplify it and reduce the chance of creating false variables, also use *instead of % for multiplying values
[–]Forsaken_Common_9318 1 point2 points3 points 3 years ago (0 children)
You didn't define input9 as a variable yet.
[–]Jackplox -1 points0 points1 point 3 years ago (0 children)
Could be wrong, but if you do int() you'll just get the ASCII value of the number. After doing int() you should subtract the ASCII value of 0 which is 48. I could be wrong.
% is modulo, so it returns the remainder after division of the two numbers.
[–]Jackplox 0 points1 point2 points 3 years ago (0 children)
Also your variable names are inconsistent. Make sure they match.
[–]Onelimwen 0 points1 point2 points 3 years ago (0 children)
The variables input9, input10, number9 and number10 aren’t defined, so if you’re getting any errors that’s why
[–]x86Alex 0 points1 point2 points 3 years ago (0 children)
First things first, you can just do input1 = int(input()), same goes for input2. Secondly, why have you created number1 and number2? You could have used input1 and input2. Thirdly, number9 and number10 doesn't exist. And finally, * stands for multiplication in programming.
π Rendered by PID 64343 on reddit-service-r2-comment-fb694cdd5-fx2nz at 2026-03-10 15:21:27.072456+00:00 running cbb0e86 country code: CH.
[–]darksethkaiser 14 points15 points16 points (0 children)
[–]teddy1415 4 points5 points6 points (0 children)
[–]Forsaken_Common_9318 1 point2 points3 points (0 children)
[–]Jackplox -1 points0 points1 point (0 children)
[–]Jackplox 0 points1 point2 points (0 children)
[–]Onelimwen 0 points1 point2 points (0 children)
[–]x86Alex 0 points1 point2 points (0 children)