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)

Want to kickstart your project?Use the new AI Studio to create your code