What will be the output of the following Python code and state the type of copy that is depicted?
l1=[2, 4, 6, 8] l2=[1, 2, 3] l1=l2 l2 The code shown above depicts shallow copy and the output of the code is: [1, 2, 3].
Correct Answer:
[1, 2, 3], shallow copy
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
[1, 2, 3], shallow copy
need an explanation for this answer? contact us directly to get an explanation for this answer