A question about list

Larry Bates larry.bates at websafe.com
Tue Oct 17 16:28:16 EDT 2006


Larry Bates wrote:
> pretoriano_2001 at hotmail.com wrote:
>> Hello:
>> Variable 'a' has the next values:
>> [[1,1],[2,2]]
>> and I want to take a to b as:
>> [[1,1,'='],[2,2,'=']]
>> How can I do this with only one line of instruction?
>> Thanks!!
>>
> To copy a list use:
> 
> b=a[:]
> 
> -Larry
Seems I may have misunderstood the question, but others
have answered appropriately.

-Larry



More information about the Python-list mailing list