> -----Original Message----- > From: [email protected] [mailto:python- > [email protected]] On Behalf Of Paul Rubin > Sent: Tuesday, June 30, 2009 11:27 AM > To: [email protected] > Subject: Re: Specific iterator in one line > > "Andreas Tawn" <[email protected]> writes: > > list("".join([("a","b"*2)[x] for x in [1,0,0,1]]) > > 50 characters. Do I win £5? > > Er, missing right paren. Try: > > list("".join(("a","bb")[x] for x in [1,0,0,1])) > --
Indeed. Stupid paste ;o) -- http://mail.python.org/mailman/listinfo/python-list
