[Tutor] Press Enter to quit. Silently maybe.

Wayne Watson sierra_mtnview at sbcglobal.net
Tue Mar 23 21:47:40 CET 2010

I use this code to quit a completed program. If no is selected for the 
yes/no prompt, warning messages appear in the shell window. I'm 
executing from IDLE. Is there a way to just return to the >>> prompt there?

def finish():
     print; print "Bye"
     raw_input('Press Enter to quit')

            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

                Stop the illegal killing of dolphins and porpoises.
               Wrest the control of the world's fisheries from Japan.

                     Web Page:<www.speckledwithstars.net/>

More information about the Tutor mailing list