Help with map python 2

Chris Angelico rosuav at gmail.com
Sun Jan 4 06:47:03 EST 2015


On Sun, Jan 4, 2015 at 10:34 PM, flebber <flebber.crue at gmail.com> wrote:
> Just getting something wrong
> list(map((lambda x: x * -1 if (x%2 != 0)), series))

Okay, and what happens when you run this? Do you get an exception? If
so (and I fully expect you will), copy and paste the entire exception
traceback and message. That's the best way to show what's going wrong.
If you're not getting an exception, what do you get that's wrong?

ChrisA



More information about the Python-list mailing list