>>> def xl(a): ... return list(reduce(lambda x,y:x+y,zip(*a))) ... >>> xl([[1,2],[3,4]]) [1, 3, 2, 4]
like this? Best Regards, -- KDr2, at x-macro.com. On Thu, Apr 2, 2009 at 8:32 PM, Neal Becker <ndbeck...@gmail.com> wrote: > How do I interleave 2 sequences into a single sequence? > > How do I interleave N sequences into a single sequence? > > > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list