# constant for scaling figure size SIZE = 4 # draw a horizontal line def line(): print "#" + "=" * (4 * SIZE) + "#" # draw the body of the mirror def mirror_body(): for line in range(1, SIZE + 1) + range(SIZE, 0, -1): print "|" + \ " " * (-2 * line + (2 * SIZE)) + \ "<>" + \ "." * (4 * line - 4) + \ "<>" + \ " " * (-2 * line + (2*SIZE)) + \ "|" # main "method" line() mirror_body() line()