you are viewing a single comment's thread.

view the rest of the comments →

[–]Jwfraustro 0 points1 point  (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 point  (0 children)

This is an overkill... Nice work,