I want to add 10 names into this list, here is the code. pls tell where the problem is. :] [closed]
Closed yesterday.
Does append() create a copy of the arguments or append the actual argument’s reference to the list? [duplicate]
This question already has answers here: How do I clone a list so that it doesn’t change unexpectedly after assignment? (24 answers) How do I pass a variable by reference? (42 answers) Closed 7 years ago. When I run x = [0, 1] y = [2, 3] x.append(y) x[2][1] = 4 print y it prints […]