adplus-dvertising
frame-decoration

Question

Which type of copy is shown in this code?
l1=[[10, 20], [30, 40], [50, 60]]
ls=list(l1)
ls
[[10, 20], [30, 40], [50, 60]]

a.

Shallow copy

b.

Deep copy

c.

memberwise

d.

All of the mentioned

Answer: (a).Shallow copy

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which type of copy is shown in this code?