x = y

José Luis Gallego gallegoj at ono.com
Tue Feb 6 16:13:13 EST 2001


Hi all,

I want to create a list x from a list y:

y = [[1,2,3],[4,5,6]]
x = y

How do I change individual elements of x without changing y?

Thanks in advance,

Jose Luis





More information about the Python-list mailing list