Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10988 > unrolled thread

Re: how to separate a list into two lists?

Started byDavid Robinow <drobinow@gmail.com>
First post2011-08-06 16:53 -0400
Last post2011-08-06 16:53 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to separate a list into two lists? David Robinow <drobinow@gmail.com> - 2011-08-06 16:53 -0400

#10988 — Re: how to separate a list into two lists?

FromDavid Robinow <drobinow@gmail.com>
Date2011-08-06 16:53 -0400
SubjectRe: how to separate a list into two lists?
Message-ID<mailman.1998.1312664023.1164.python-list@python.org>
On Sat, Aug 6, 2011 at 1:23 PM, Kabie <kabie2011@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)
???

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web