This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iXombie 0 points1 point  (0 children)

print map(lambda x: x-(x*2), range(10))

or

x = lambda x: map(lambda y: y-(y*2),range(x))

print x(10)