Question: import copy w = [ { name : A , score: 8 8 } , { name :
import copy
w
name:A "score":
name:B "score":
name:C "score":
x w
y copy.copyx
z copy.deepcopyw
Select all true statements about x y and z
Group of answer choices
x and w are two names for the same underlying list, so changes through x will be reflected in w and vice versa.
variable z doesn't directly indirectly reference any of the original object instances.
y creates a new list object, however the new list object still references the original nested dictionary object instances.
changing a nested dictionary within w wouldn't affect the variable y
x is considered a deep copy of w
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
