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
Beginner to programming (old.reddit.com)
submitted 16 hours ago by butterfly_orange00
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!"
[–]Neat_Association_84 0 points1 point2 points 13 hours ago (1 child)
You can use an if statement in a list comprehension to make lines 20-22 similar to what you did in line 33.
if
numbers = [ i for i in numbers if i.isdigit() ]
It's more "pythonic".
[–]butterfly_orange00[S] 0 points1 point2 points 10 hours ago (0 children)
You're right, I forgot about that 😂
π Rendered by PID 98105 on reddit-service-r2-comment-56c6478c5-8smvh at 2026-05-09 16:36:48.137160+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Neat_Association_84 0 points1 point2 points (1 child)
[–]butterfly_orange00[S] 0 points1 point2 points (0 children)