Starting and Stopping Python

Unix

     unix % python
     Python 1.5.2 (#1, Sep 19 1999, 16:29:25)  [GCC 2.7.2.3] on linux2
     Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
     >>> 
     

On Windows and Macintosh

  • Python is launched as an application.
  • An interpreter window will appear and you will see the prompt.

Program Termination

  • Programs run until EOF is reached.
  • Type Control-D or Control-Z at the interactive prompt.
  • Or type
     raise SystemExit
<<< O'Reilly OSCON 2000, Advanced Python Programming, Slide 5
July 17, 2000, beazley@cs.uchicago.edu
>>>