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()