[Tutor] HOWTO exit

alan.gauld@bt.com alan.gauld@bt.com
Sun, 22 Jul 2001 21:50:49 +0100


>     I have just started python, and want to know how to 
> `exit'.  

There ae several ways but the most general, but least used is:

raise SystemExit

usually you see:

import sys
...
sys.exit()


You can find explanations of this in my online beginners tutor:

http://www.crosswinds.net/~agauld/

Alan G.