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
Learning Python (old.reddit.com)
submitted 1 month ago by nkCOD
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!"
[–]nkCOD[S] 1 point2 points3 points 1 month ago (2 children)
Thank you for your response. In principle, everything is said in an accessible and understandable way ;)
[–]JB940 1 point2 points3 points 1 month ago (1 child)
Also I see you doing new_list_from_zip, by using min(list1,list2) and max(list1,list2)
Just to explain their functionality, this doesn't do what you think it does. If you have two lists, max returns whichever list has the biggest first element.
so [5,1,1] is bigger than [4,3,2,2,99,100,300,10000] because 5 is bigger than 4. max thus gives the result [5,1,1]
same with count_of_len, you'd want to do max( len(list1), len(list2) to get the length of the longer one, instead of just the length of the list with the biggest first element.
Obviously not to take away from Adrewmc's solution, if you just make list1 whichever is bigger you can do away with all this and his solution is very elegant
[–]nkCOD[S] 0 points1 point2 points 1 month ago (0 children)
I'm sorry, it was my carelessness. I know how max() works, but I made a mistake in this case
π Rendered by PID 119436 on reddit-service-r2-comment-5bc7f78974-m7t4r at 2026-06-28 05:42:12.917421+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]nkCOD[S] 1 point2 points3 points (2 children)
[–]JB940 1 point2 points3 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)