appendix hcomplete programs cmd graphicscommands cmd draw update screen undohandler screen the main gui program window then which and has on makes the when def main tk drawingapp drawingapp mainloop program completed __name__ =__main__ main the scope program this is the sample program from the first that illustrates the use of scope within program this program can be downloaded from the text' website import math math def global * return thearea def main global historyofprompts historyofoutput def prompt input prompt append prompt return def showoutput append print val getinput enter the of this copy belongs to 'acha