can we append a list with another list in Python ?

inshu chauhan insideshoes at gmail.com
Thu Oct 25 05:44:03 EDT 2012


>>
> >> 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...
> >
> >>
>
> No, it won't.  Try it to see


Ok but it should be clist + = [alist, blist ] ????

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


More information about the Python-list mailing list