Cody Bable

Generation

generate functionWed, 05 Jul 2023

make a 8 by 8 grid

def grid(num): for x in range(num): print(' ---' * num) print('| ' * num, '|') print(' ---' * num) grid(8)

Questions about programming?Chat with your personal AI assistant