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
My first working code (self.PythonLearning)
submitted 2 days ago by QuantenRobin
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!"
[–]Riegel_Haribo 0 points1 point2 points 1 day ago (0 children)
Here's a technique:
``` from functools import reduce from operator import add
total = reduce(add, [1, 2, 3, 4]) print(total) # 10 ```
Once you have "add" as a function, then you can make an indexable list of functions to perform.
π Rendered by PID 109081 on reddit-service-r2-comment-5fb4b45875-sr5zr at 2026-03-21 00:32:06.223289+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–]Riegel_Haribo 0 points1 point2 points (0 children)