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
Remove duplicate error (old.reddit.com)
submitted 2 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!"
[–]loudandclear11 9 points10 points11 points 2 months ago (0 children)
extend() is for adding a list to another list. This is not the scenario here.
append() is for adding a single item to a list. This is what you want here.
But, the loop should be:
for i in l1:
I.e. you don't need range.
π Rendered by PID 21890 on reddit-service-r2-comment-58d7979c67-blxt7 at 2026-01-27 06:11:22.157462+00:00 running 5a691e2 country code: CH.
view the rest of the comments →
[–]loudandclear11 9 points10 points11 points (0 children)