Exercise 1 · Chapter: Pixel ProjectsRequired+50 XP
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.
Expected output
8 8 black white black
Need a hint?
3 available · costs 5 XP each
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])
Output
Run your code to see the output here.