# CSE 142, Summer 2008 (John Kurkowski) # This program draws several simple text figures # using functions to capture structure and remove redundancy. def egg(): eggTop() eggBottom() print def eggTop(): print " ______" print " / \\" print "/ \\" def eggBottom(): print "\\ /" print " \\______/" def cup(): eggBottom() line() print def line(): print "+--------+" def stopSign(): eggTop() print "| STOP |" eggBottom() print def hat(): eggTop() line() # main egg() cup() stopSign() hat()