H Huyền Thu New member Sep 20, 2021 #1 What will be the output of the following Python code? 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]] C. [10,23,56,[95]] D. [10,34,56,[78]]
What will be the output of the following Python code? 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]] C. [10,23,56,[95]] D. [10,34,56,[78]]
M Man Ly New member Sep 20, 2021 #2 Answer: b Explanation: The above copy is deepcopy. Any change made in the original list isn’t reflected. Upvote 0 Downvote
Answer: b Explanation: The above copy is deepcopy. Any change made in the original list isn’t reflected.