Untitled
unknown
plain_text
a year ago
442 B
1
Indexable
def print_grid(): # print the top of the grid print('+ - - - - + - - - - +') # print the middle and bottom rows of the grid row = 0 while row < 8: if row < 4: print('| | |') else: print('| | |') row += 1 # print the bottom of the grid print('+ - - - - + - - - - +') # call the function to print the grid print_grid()
Editor is loading...
Leave a Comment