I have question with dictionary copy method for example lets say i have
>> d = {\'pears\': 200, \'apples\': 400, \'oranges\': 500, \'bananas\': 300}
&
by changing the value, you are changing what the key is pointing at. Changing the value in the original dictionary isn't going to change what the key in the copy is pointing to.
A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original.
A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.
When you copy something it copies the original values of the object it is copying, but it creates a new object. It doesn't mirror the original object.