Python lab 4, in this lab we had to draw grid using python. In this lab i learn how to take problem a part, i divided the problems and did them one after the other.
def print_beam():
“””this function prints a beam”””
print (‘+ – – – -’),
def print_post():
“””this function prints a post”””
print(‘!’)
print (‘+ – – – – + – – – – +’)
print (‘| | | ‘)
print (‘| | | ‘)
print (‘| | | ‘)
print (‘| | | ‘)
print (‘+ – – – – + – – – – +’)
print (‘| | | ‘)
print (‘| | | ‘)
print (‘| | | ‘)
print (‘| | | ‘)
print (‘+ – – – – + – – – – +’)