I have a list, then modify it, but want to save the old list to then modify in a different way. I try to save the original using a different name and =, but it seems the two names are forever linked by the equals sign, so the modification also changes the original. Why does this happen, and how do I deal with this?
Example: L1=[1,2] L2=[3,4] L1 L2 L1.extend(L2) L1 L2
output: [1, 2] [3, 4] [1, 2] [1, 2, 3, 4] [3, 4] [1, 2, 3, 4]
The same thing happens with "append". Help please!!!