Discussion :: Python MCQs
-
What is the output of the following code?import copya=[10,23,56,[78]]b=copy.deepcopy(a)a[3][0]=95a[1]=34print(b)
Answer : Option B
Explanation :
The above copy is deepcopy. Any change made in the original list isn't reflected.
Be The First To Comment