joining 2 lists together - an elegant way?

Fredrik Lundh fredrik at pythonware.com
Sat Jun 29 08:06:25 EDT 2002


Rajarshi Guha wrote:

> Right now I do:
>
> newlist = []
> for i in l1:
>   newlist.append(i)
> for i in l2:
>   newlist.append(i)

newlist = l1 + l2

</F>





More information about the Python-list mailing list