how to separate a list into two lists?

Chris Angelico rosuav at gmail.com
Sat Aug 6 14:35:53 EDT 2011


On Sat, Aug 6, 2011 at 7:21 PM, bud <only at fleshwound.org> wrote:
> Nice. :)  I forgot about zip, still learning Python myself.
>
> I'll have to check up on the *L - is that a reference?
> I

It expands the list into the arguments. It's the parallel to:

def func(*args):

which collapses the args into a list.

ChrisA



More information about the Python-list mailing list