def Command_Open(): return def Command_Save(): return def Command_Print(): return def Command_New(): return # If we were too lazy or too busy to create the stub # functions, we can use the "pass" statement instead. # The pass statement doesn't do anything, but keeps # Python happy if there isn't anything to do (or if # you don't yet know what to do) after a while, for, # if, elif, or else statement. def Main(): MoreToDo = True while MoreToDo: Command = input("Enter a command --- ") if Command == "QUIT": MoreToDo = False elif Command == "OPEN": Command_Open() # Call stub elif Command == "SAVE": Command_Save() # Call stub elif Command == "PRINT": Command_Print() # Call stub elif Command == "NEW": Command_New() # Call stub elif Command == "EDIT": pass # Do nothing, replace with stub call later elif Command == "COPY": pass # Do nothing, replace with stub call later else: print ("Illegal Command") return