Splice two lists

danmcleran at yahoo.com danmcleran at yahoo.com
Sun May 7 02:28:44 CEST 2006


Is there a good way to splice two lists together without resorting to a
manual loop? Say I had 2 lists:

l1 = [a,b,c]
l2 = [1,2,3]

And I want a list:

[a,1,b,2,c,3] as the result.

I've been searching around but I can't seem to find a good example.

Thanks,

Dan McLeran




More information about the Python-list mailing list