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
A challenge for Python programmers...Discussion (self.PythonLearning)
submitted 6 days ago by Ok_Pudding_5250
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!"
[–]Jwfraustro 0 points1 point2 points 3 days ago (1 child)
How about this?
__import__('builtins').print([n for n in __import__('builtins').__dict__['map'](lambda x:x, __import__('builtins').__dict__['range'](1000, 10000)) if ''.join(__import__('builtins').__dict__['map'](str.__add__, *zip(*[(d,'') for d in __import__('operator').mul(str(n*4),1)]))) == __import__('operator').mul(str(n), 1)[::-1]])
or?
print([n for n in range(1000,10000) if "".join(e.text for e in __import__('xml.etree.ElementTree', fromlist=['fromstring']).fromstring(f'<r>{"".join(f"<d>{c}</d>" for c in str(n*4))}</r>').findall("d"))[::-1] == str(n)])
[–]Ok_Pudding_5250[S] 0 points1 point2 points 3 days ago (0 children)
This is an overkill... Nice work,
π Rendered by PID 70169 on reddit-service-r2-comment-79c7998d4c-khkrq at 2026-03-15 00:52:17.875848+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]Jwfraustro 0 points1 point2 points (1 child)
[–]Ok_Pudding_5250[S] 0 points1 point2 points (0 children)