9.1.7 Checkerboard V2 Codehs !!exclusive!! 🎁 Ad-Free

 

9.1.7 Checkerboard V2 Codehs !!exclusive!! 🎁 Ad-Free

# 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")

The autograder often checks if you actually changed the values in the list using my_grid[row][col] = 1 . Simply printing a pattern without updating the list will likely cause the test to fail. 9.1.7 Checkerboard V2 Codehs

for (let row = 0; row < 8; row++) for (let col = 0; col < 8; col++) // Draw a single square at (col, row) # This is the logic for the checkerboard