Lab 4 Python

*When copying the following code over to Python, be sure to align the print_beam and print_post statements the same way as the photo above so the code will work properly. Replace dashes with spaces*

 

def print_beam():
      print(‘+ – – – – + – – – – +’)

def print_post():
      print(‘|           |            |’)

def print_grid():
      print_beam()
      print_post()
      print_post()
      print_post()
      print_post()
      print_beam()
      print_post()
      print_post()
      print_post()
      print_post()
      print_beam()

print_grid()

 

 

def print_beam():
      “””This function prints a beam”””
      print (‘+ – – – -‘)

def print_post():
      “””This function prints a post”””
      print (‘|         ‘)
print_beam()