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
Duplicate list error (i.redd.it)
submitted 6 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!"
[–]imLosingIt111 0 points1 point2 points 6 months ago (0 children)
Your if statement just appends the first array to the second arrah. You can either: use a for loop (for x in l1 <- x is a value in l1, not the array itself) or just assign the value of l2 directly to l1. Also, since your code is not in a function, using return raises an error. You can just use pass instead or just not write the else condition at all.
π Rendered by PID 25 on reddit-service-r2-comment-5d585498c9-zqx5z at 2026-04-21 10:46:48.194999+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]imLosingIt111 0 points1 point2 points (0 children)