joining 2 lists together - an elegant way?

Rajarshi Guha rajarshi at presidency.com
Fri Jun 28 21:03:29 CEST 2002


Hi,
  is there a more elegant way to join to lists together?

Right now I do:

newlist = []
for i in l1:
  newlist.append(i)
for i in l2:
  newlist.append(i)

It does the job - but a one liner (if possible) would be nice :)
TIA,



More information about the Python-list mailing list