Cody Bable

Generation

generate functionWed, 05 Jul 2023

make a 8 by 8 grid

def make_grid(columns, rows): rows = rows * ' ---' + '\n' columns = columns * '| ' + '|\n' grid = rows + columns for _ in range(rows): print(grid) make_grid(8, 8)

Questions about programming?Chat with your personal AI assistant