916 Checkerboard V1 Codehs Fixed «INSTANT ✪»

for each row in range(rows): for each col in range(cols): x = col * square_size y = row * square_size if (row + col) % 2 == 0: set fill color to red else: set fill color to black draw square at (x, y) with size square_size

add(square);

: Since CodeHS assignments vary slightly by version (Karel vs. Python), make sure your function names ( ) match your specific course requirements. Java Karel 916 checkerboard v1 codehs fixed

def draw_square(color): turtle.color(color) turtle.begin_fill() for _ in range(4): turtle.forward(50) turtle.left(90) turtle.end_fill() turtle.forward(50) for each row in range(rows): for each col

If you're still getting a on the "set elements to 1" check, make sure you aren't using a list comprehension or a shortcut to create the board, as the CodeHS autograder specifically looks for the board[i][j] = 1 syntax. Keep grinding on those Tracy the Turtle challenges

Keep grinding on those Tracy the Turtle challenges! 🐢💻