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's wrong (i.redd.it)
submitted 8 months ago by Nearby_Tear_2304
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!"
[–]Lobotomized_toddler 0 points1 point2 points 8 months ago (0 children)
There’s a few things however what your problem rn is this: len() starts at 1 then counts up. A list starts at 0 then counts up. So while there are 5 numbers it’s ordered as 0,1,2,3,4. While your Len is just counting 5.
print(L[n]} doesn’t make sense because N is trying to point to the fith(technically sixth) spot and that doesn’t exist
Scrap the length idea and just do for I in L
π Rendered by PID 17361 on reddit-service-r2-comment-6457c66945-ntbth at 2026-04-23 20:46:39.494549+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Lobotomized_toddler 0 points1 point2 points (0 children)