0 0 votes General list reverse + – 0% Accept Rate Accepted 0 answers out of 6 questions askds 500 points 6 6 9 answer comment Share 0 reply Please log in or register to add a comment.
0 0 votes The best way is to how b is copied below. As we can see, a is impacted by any changes we make on c but not b, a = [1,2,3] b=a[:] c=a b.append(99) c.append(4) print ("a=",a,"b=",b,"c=",c) outputs a= [1, 2, 3, 4] b= [1, 2, 3, 99] c= [1, 2, 3, 4] askds answered Oct 30, 2018 askds 500 points 6 6 9 comment Share 0 reply Please log in or register to add a comment.