---
id: 28119f9dc5f93e3ac5d7c58a
title: 2D Lists and Nested Loops
challengeType: 11
videoId: 2lKgjX3gzmM
dashedName: 2d-lists-and-nested-loops
---

# --description--

In this video, you will learn how to create 2D lists and use nested loops to work with multi-dimensional data structures.

# --questions--

## --text--

What will be the output for the following code?

```python
number_grid = [
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
]

print(number_grid[2][1])
```

## --answers--

8

---

7

---

9

---

1

## --video-solution--

1
