9.1.7 Checkerboard - V2 Codehs ((install))
rl.close(); ); );
: Instead of checking just the column index, we look at the sum of the row and col indices. If (row + col) % 2 == 0 , color the square red . Otherwise, color it black . 9.1.7 Checkerboard V2 Codehs
Here is a detailed review of why this code works and the specific concepts being tested. color the square red . Otherwise
: In Python, all code within the checkerboard function must be indented properly to execute as a single block. 9.1.7 Checkerboard V2 Codehs
grid where 1s and 0s alternate perfectly in every direction.