Q. What will be the output of the following Python code?
Code:
l=[2, 3, [4, 5]] l2=l.copy() l2[0]=88 l l2
β
Correct Answer: (B)
[2, 3, [4, 5]] [88, 2, 3, [4, 5]
l=[2, 3, [4, 5]] l2=l.copy() l2[0]=88 l l2
You must be Logged in to update hint/solution