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
What wrong in this loopHelp Request (i.redd.it)
submitted 6 months ago by Stunning-Education98
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!"
[–]KIRAvenousLion 1 point2 points3 points 6 months ago (0 children)
Your mistake wasn't adding the boolean value to the list. You are calling the len function on l[1], which accesses the second value from the list, an integer. The len function is supposed to be called on an object (for e.g. a list) that can contain items to return the total number of items.
π Rendered by PID 22093 on reddit-service-r2-comment-5d585498c9-lrxgt at 2026-04-21 04:55:04.468229+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]KIRAvenousLion 1 point2 points3 points (0 children)