how to separate a list into two lists?

David Robinow drobinow at gmail.com
Sat Aug 6 16:53:42 EDT 2011


On Sat, Aug 6, 2011 at 1:23 PM, Kabie <kabie2011 at gmail.com> wrote:
> No.
> L1, L2 = zip(*L)

Not quite. That makes L1 & L2 tuples.

L1, L2 = zip(*L)
L1 = list(L1)
L2 = list(L2)
???



More information about the Python-list mailing list