U
user
When trying to pass the contents from one list to another this happens:
list = [1,2,3]
list1 = list
print list1
[1,2,3]
list.append(7)
print list1
[1,2,3,7]
Whats the easiest way to pass the data in a list, not the pointer, to
another variable
list = [1,2,3]
list1 = list
print list1
[1,2,3]
list.append(7)
print list1
[1,2,3,7]
Whats the easiest way to pass the data in a list, not the pointer, to
another variable