Lab 4

This is Lab #4

In this lab, we use the function command to arrange different symbols to create shapes. In my program I use ‘+’ as the boarders, ‘-‘ as the horizontal outline and uppercase ‘I’ as the vertical outline.

————————

def print_beam():
print ‘+—–‘,
def print_post():
print ‘I     ‘,
def print_beams():
print ‘+———‘,’+——-‘,’+’
def print_posts():
print ‘I        I         I’

def print_grid():
print_beams()
print_posts()
print_posts()
print_posts()
print_posts()
print_beams()
print_posts()
print_posts()
print_posts()
print_posts()
print_beams()
print_grid()

——————————-