# Deep Copy

say it: **“DEEP KOP-ee”** **/dip ˈkɑpi/**

A copy of a collection and everything inside it, fully separate.

## What is a **deep copy**?

A **deep copy** copies a collection and everything inside it, so the copy is completely separate from the original.

```python
import copy
teams = [["Ana"], ["Ben"]]
backup = copy.deepcopy(teams)
backup[0].append("Cai")
print(teams)  # [['Ana'], ['Ben']]: untouched
```

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 17, 2026

## In other subjects

- [Deep Copy in JavaScript](https://www.ask-codey.com/glossary/deep-copy-javascript)
- [Deep Copy in Software Development](https://www.ask-codey.com/glossary/deep-copy-software-development)

Source: https://www.ask-codey.com/glossary/deep-copy
