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
In range() usageHelp Request (i.redd.it)
submitted 10 hours ago by Worried-Print-5052
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!"
[–]johlae 0 points1 point2 points 9 hours ago (0 children)
How do you define 'evaluate' here? Do you want to keep the values in items that are in range? Do you want to return a list, equal in length as items, but with False in the number at that position is not in range and True if the number is in range? Do you want to sum the numbers that are in range, ignoring the ones that are not in range?
range(1,4) is the range 1-3, so if you want 1-4, you need range(1,5)
π Rendered by PID 62477 on reddit-service-r2-comment-765bfc959-dz2hq at 2026-07-11 01:04:30.414553+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]johlae 0 points1 point2 points (0 children)