Vidyalelo
Python · Q144

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 144

Q144

What will be the output of the following Python code? import copy a=[10,23,56,[78]] b=copy.deepcopy(a) a[3][0]=95 a[1]=34 print(b)

A.
[10,34,56,[95]]
B.
[10,23,56,[78]]
Answer
C.
[10,23,56,[95]]
D.
[10,34,56,[78]]

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board