CodeHS 9.1.7 Checkerboard v2 exercise, the goal is to create a function that generates a 2D list (a list of lists) representing an 8x8 checkerboard pattern using 0s and 1s. Solution Code # Create an empty list for the current row current_row
. Unlike the first version, this challenge specifically checks that you use assignment statements to modify elements within the grid. Solution Code 9.1.7 checkerboard v2 answers
The Modulo Trick: The condition (i + j) % 2 == 0 is the key. →right arrow prints 0. →right arrow prints 1. CodeHS 9
setFillColor() but forgetting setFilled(true).