list iteration if statement

Steve Holden steve at holdenweb.com
Fri Jan 2 23:07:36 EST 2009


alex goretoy wrote:
> v should have ['3','4','1'] sorry if I made it confusing.
> [...]

Aah, I see I was giving you incorrect advice. I now realise that you
want to flatten the lists as well.

Don't try to do this with a list comprehension. It won't work without
creating an unnecessary list of lists of None.

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list