Shallow and Deep Copies
You'll learn about shallow and deep copy in Python in this lesson.
We'll cover the following
Introduction to shallow copy
Objects can contain references to other objects. If we copy the object, we normally get a shallow copy. This means the references in the object are copied but not the referenced objects themselves.
You can see this in the example below:
Get hands-on with 1400+ tech skills courses.