can we append a list with another list in Python ?

inshu chauhan insideshoes at gmail.com
Thu Oct 25 05:21:22 EDT 2012


> > clist = alist, blist
>
This may work i guess becuase i want list within list [ [1,2,3] , [4,5,6]]


>
> or if the clist initial contents were relevant, perhaps you mean
>
> > clist += alist, blist
>

But not this because it will simply concatenate the  list like
[1,2,3,4,5,6] .. I dont want this actaully...

>
>
>
> --
>
> DaveA
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121025/d0f0e548/attachment.html>


More information about the Python-list mailing list