# This program draws square box figures. # This initial version is redundant. # Prints a 6x6 box filled with dots. def draw_box1(): print("*" * 6) for line in range(4): print("*", "." * 4, "*", sep="") print("*" * 6) # Prints a 9x9 box filled with dots. def draw_box2(): print("*" * 9) for line in range(7): print("*", "." * 7, "*", sep="") print("*" * 9) # Prints a 4x4 box filled with dots. def draw_box3(): print("*" * 4) for line in range(2): print("*", "." * 2, "*", sep="") print("*" * 4) def main(): print("This program draws three boxes.") draw_box1() print() draw_box2() print() draw_box3() main()