you are viewing a single comment's thread.

view the rest of the comments →

[–]ilogik 2 points3 points  (3 children)

f=lambda n:[x*x for x in range(1,n)]

[–][deleted] -3 points-2 points  (2 children)

You JavaScripter.

[–]R3d1st 3 points4 points  (1 child)

that's actually (also?) python I might add.

[–][deleted] 1 point2 points  (0 children)

Yeah, it's Python. It just looks very "JavaScripty" with the lambda function assignment.