Page 1 of 1

What will be the output of the following Python code and state the type of copy that is depicted?

Posted: Wed Jul 13, 2022 7:45 pm
by answerhappygod
l1=[2, 4, 6, 8]
l2=[1, 2, 3]
l1=l2
l2
a) [2, 4, 6, 8], shallow copy
b) [2, 4, 6, 8], deep copy
c) [1, 2, 3], shallow copy
d) [1, 2, 3], deep copy