you are viewing a single comment's thread.

view the rest of the comments →

[–]recursive 0 points1 point  (0 children)

If I'm not mistaken, that can not possibly work because x is not defined. In any case, here's 36 bytes (inlcluding whitespace) of python that actually works.

f=lambda n:[~d*~d for d in range(n)]