# This program draws square box figures. # This second version uses a parameter. # Prints a box of the given height filled with dots. def draw_box(height): print("*" * (height * 2)) for line in range(height - 2): print("*", "." * (height * 2 - 2), "*", sep="") print("*" * (height * 2)) def main(): print("This program draws three boxes.") draw_box(5) print() draw_box(7) print() draw_box(3) main()