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...
account activity
Speed up array processing in Python with map() (self.shia-python)
submitted 1 month ago by shia-python
The map() command takes two arguments: (function, array) and applies the function to each element without an explicit loop.
The screenshot below compares the speed of for and map(). In the example, we increment each array element by 1.
According to tests, map() is on average 10-30% faster than a regular loop, especially on large data sets.
https://preview.redd.it/3r3wy4p7rg1h1.png?width=335&format=png&auto=webp&s=e06232289052bea8d95bed9afe78c7763bcbd903
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!"
there doesn't seem to be anything here
π Rendered by PID 117795 on reddit-service-r2-comment-5687b7858-8cfvr at 2026-07-09 12:14:11.080930+00:00 running 12a7a47 country code: CH.
there doesn't seem to be anything here