# Loop through rows (vertical) for row in range(NUM_ROWS): # Loop through columns (horizontal) for col in range(NUM_COLS):
Example (pseudocode):
Ensure your loops run while row < numRows , not <= , or you’ll hit an IndexOutOfBounds error. 9.1.6 checkerboard v1 codehs
If the of the row and column (row + col) is even , it gets one color. # Loop through rows (vertical) for row in