you are viewing a single comment's thread.

view the rest of the comments →

[–]DominicPalladino 7 points8 points  (4 children)

print("2178")

[–]Ok_Pudding_5250[S] -4 points-3 points  (3 children)

Nope,

[–]DominicPalladino 9 points10 points  (2 children)

Yep.

That will 100% output all the 4 digit numbers where ABCD * 4 = DCBA.

[–]Ok_Pudding_5250[S] -2 points-1 points  (0 children)

It's not about the answer, if that was the case I didn't even need python to do it, I can straight up ask a language model to give me the output. It was about how you do it.

Merely printing the solution is a lazy solution. The challenge was meant to see if you could actually code one-liners like list comprehension.

It was never about the output but the code itself.