Exerpad
🔥 0
0 XP
Exercise 2 · Chapter: Your First FrameRequired+50 XP

One Bright Pixel

A blank sky is a fine picture, but nothing in it is yours yet.

Paint one red square at row 6, column 20 — near the middle of the sky.

Remember the order: grid[row][col]. Row first. Getting these backwards is the single most common mistake in this whole milestone, and the picture will tell you immediately when you do.

Expected output
........................................
........................................
........................................
........................................
........................................
........................................
....................A...................
........................................
........................................
........................................
........................................
........................................
........................................
########################################
Need a hint?
3 available · costs 5 XP each
python
def draw(state):
grid = blank_grid()
# Paint one red square at row 6, column 20.
return grid