# Shallow Copy

say it: **“SHAL-oh KOP-ee”** **/ˈʃæloʊ ˈkɑpi/**

A new collection that still shares the items inside it with the original.

## What is a **shallow copy**?

A **shallow copy** is a new list (or dictionary) that still shares the items inside it with the original. Changing a list inside it changes both.

```python
teams = [["Ana"], ["Ben"]]
copy = teams.copy()
copy[0].append("Cai")
print(teams)  # [['Ana', 'Cai'], ['Ben']]: changed too!
```

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

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

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