Checkerboard V2 Codehs | 9.1.7

if (row + col) % 2 == 0: pen.color("red") else: pen.color("black")

# This is the logic for the checkerboard pattern: # If the sum of the row and column indices is even, make it red. # Otherwise, make it black. if (row + col) % 2 == 0: pen.color("red") else: pen.color("black") 9.1.7 Checkerboard V2 Codehs

You must use nested loops and assignment statements to modify an existing grid of zeros. 💻 Implementation (Python) if (row + col) % 2 == 0: pen