# Create a nested list original = [[1, 2], [3, 4]]

Canonical URL: <https://datadriven.io/problems/create-a-nested-list-original-1-2-3-4-make-a-sha-a6b7d304>

Domain: Python · Difficulty: medium

## Problem

Create a nested list original = [[1, 2], [3, 4]]. Make a shallow copy. Modify shallow[0][0] = 99. Print original[0][0] to show the shallow copy limitation, then print whether original is shallow (using the 'is' operator).

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/create-a-nested-list-original-1-2-3-4-make-a-sha-a6b7d304)
- [Python Interview Questions](https://datadriven.io/python-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.