acme_dryer - print # The step1 function displays the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
# This program displays step-by-step instructions # for disassembling an Acme dryer. # The main function performs the program's main logic. def main(): # Display the start-up message. startup_message() raw_input('Press Enter to see Step 1.') # Display step 1. step1() raw_input('Press Enter to see Step 2.') # Display step 2. step2() raw_input('Press Enter to see Step 3.') # Display step 3. step3() raw_input('Press Enter to see Step 4.') # Display step 4. step4() # The startup_message function displays the # program's initial message on the screen. def startup_message(): print 'This program tells you how to' print 'disassemble an ACME laundry dryer.' print 'There are 4 steps in the process.'
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: print # The step1 function displays the instructions # for step 1. def step1(): print 'Step 1: Unplug the dryer and' print 'move it away from the wall.' print # The step2 function displays the instructions # for step 2. def step2(): print 'Step 2: Remove the six screws' print 'from the back of the dryer.' print # The step3 function displays the instructions # for step 3. def step3(): print 'Step 3: Remove the back panel' print 'from the dryer.' print # The step4 function displays the instructions # for step 4. def step4(): print 'Step 4: Pull the top of the' print 'dryer straight up.' # Call the main function to begin the program. main()...
View Full Document

Ask a homework question - tutors are online