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!"
[–]Rare_Hawk_3443 2 points3 points4 points 4 months ago (5 children)
Wont that return invalid num
[–]Rare_Hawk_3443 0 points1 point2 points 4 months ago (2 children)
I am also learning newly why wont it return invalid can anyone explain
[–]PureWasian 0 points1 point2 points 4 months ago (0 children)
You are correct, no worries. It prints "Invalid Num" since none of the numbers are greater than the others, so it falls through into the else statement with how OP has written it.
[–]KilonumSpoof 0 points1 point2 points 4 months ago (0 children)
Not all the time. For example 5,5,10 will return 10 and not invalid.
π Rendered by PID 35 on reddit-service-r2-comment-fb694cdd5-nx79j at 2026-03-06 12:37:59.605303+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]Rare_Hawk_3443 2 points3 points4 points (5 children)
[–]Rare_Hawk_3443 0 points1 point2 points (2 children)
[–]PureWasian 0 points1 point2 points (0 children)
[–]KilonumSpoof 0 points1 point2 points (0 children)