can we append a list with another list in Python ?

David Hutto dwightdhutto at gmail.com
Thu Oct 25 05:50:11 EDT 2012


On Thu, Oct 25, 2012 at 5:44 AM, inshu chauhan <insideshoes at gmail.com> wrote:
>
>
>> >>
>> >> 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 ] ????
>>
>>
>>
>> --
Also, try help(list) in the interpreter for functions utilizable by list.


Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com



More information about the Python-list mailing list