9.1.7 Checkerboard V2 Answers [work]
def print_board(self): for row in self.board: for cell in row: if cell is None: print('-', end=' ') else: print(cell.color[0].upper(), end=' ') print()
The solution to the 9.1.7 Checkerboard v2 programming exercise involves using nested for loops conditional logic (the modulo operator 9.1.7 checkerboard v2 answers
# 2. Use nested loops to replace 0s with 1s in a checkerboard pattern def print_board(self): for row in self
. Unlike the first version, this challenge specifically checks that you use assignment statements to modify elements within the grid. Solution Code end=' ') else: print(cell.color[0].upper()