By “shallow copying” it means the content of the dictionary is not copied by value, but just creating a new reference. >>> a = {1: [1,2,3]} >>> b = a.copy() >>> a, b ({1: [1, 2, 3]}, {1: [1, 2, 3]}) >>>
By “shallow copying” it means the content of the dictionary is not copied by value, but just creating a new reference. >>> a = {1: [1,2,3]} >>> b = a.copy() >>> a, b ({1: [1, 2, 3]}, {1: [1, 2, 3]}) >>>