shallowcopy
Shallow copy is a method of object duplication where a new object is created that contains references to the same elements as the original object. This means that while the new object itself is distinct, any mutable objects contained within it are shared with the original. Changes made to these shared mutable elements through either the original or the shallow copy will be reflected in both.
The concept of shallow copy is often contrasted with deep copy. In a deep copy, not only
Shallow copying is generally faster and consumes less memory than deep copying because it avoids the overhead
Many programming languages provide built-in mechanisms for shallow copying. For instance, in Python, the `copy.copy()` function