Skip to content
Quiz · Lists · lesson 7 of 11

Quiz — [[0] * 2] * 2

What does the program print?

Python
grid = [[0] * 2] * 2
grid[0][0] = 5
print(grid)

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way