I am trying to create 2 child dictionary from parent dictionary , but if performing any del operation it is impacting other child
For example :
My parent dictionary is mentioned below
p : { 2:10 , 4:20 , 5:35 }
My child dictionary which is nothing but copy of main
child_1 = p.copy()
child_2 = p.copy()
If I am performing any delete operation on child_1
then other child_2
is getting impacted
It should not happen.
del child_1[2]
It as deleted form child_2 as well that key,value
of above
I want both should not be impacting each other if any del is performing