Ex
Exerpad
🔥0
0 XP
Lv.1 Beginner

Checkerboard

Create an 8x8 checkerboard pattern using "black" and "white".

The top-left square should be "black". Squares alternate colors like a real checkerboard:

Set __grid__ to your grid so you can see the result!

Don't change the print statements at the bottom — they're used to check your answer.

python
grid = []
# Build an 8x8 checkerboard here
# Use "black" and "white"
# Top-left should be "black"


__grid__ = grid

# Don't change below this line
print(len(grid))
print(len(grid[0]))
print(grid[0][0])
print(grid[0][1])
print(grid[7][7])
Exerpad — Learn to Code with Fun!