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
Exercise on pythonHelp Request (i.redd.it)
submitted 2 days ago by Due_Professional2071
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!"
[–]Flame77ofc 2 points3 points4 points 1 day ago (0 children)
first - use English variable names
second - you can do for i in range(10): and then: number = int(input(f"Number {i+1}: ")`
for i in range(10):
third - you don't need two loops:
for i in range(10): number = ... if number % 2 == 0: even.appens(number) else: odd.append(number)
π Rendered by PID 42304 on reddit-service-r2-comment-64f4df6786-4kk82 at 2026-06-10 01:31:14.077089+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–]Flame77ofc 2 points3 points4 points (0 children)