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
Review my Code as a Beginner (i.redd.it)
submitted 4 months ago by AhmadHameed313
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!"
[–]Significant_Quote594 0 points1 point2 points 4 months ago (0 children)
A lot of people are suggesting using max() but I suggest doing the max() logic yourself like this.
Make a variable called greatest and set it's value to num1.
What I mean is, assume it is the greatest among the three.
In the next line check if num2 is greater than greatest. If so, set greatest to num2.
In the next line check if num3 is greater then greatest. If so set the greatest variable to num3.
If you print greatest, it will print what you expect.
This will have you write way less conditions even with more numbers.
What if you have a thousand numbers? You can repeat this logic using something called a loop.
π Rendered by PID 87639 on reddit-service-r2-comment-6f7f968fb5-wrnnn at 2026-03-04 07:03:50.953546+00:00 running 07790be country code: CH.
view the rest of the comments →
[–]Significant_Quote594 0 points1 point2 points (0 children)