Q. What will be the output of the following Python code and state the type of copy that is depicted?
Code:l1=[2, 4, 6, 8] l2=[1, 2, 3] l1=l2 l2
β
Correct Answer: (C)
[1, 2, 3], shallow copy
l1=[2, 4, 6, 8] l2=[1, 2, 3] l1=l2 l2
You must be Logged in to update hint/solution