next up previous contents
Next: 2.2 The Interpreter and Up: 2.1 Invoking the Interpreter Previous: 2.1.1 Argument Passing

2.1.2 Interactive Mode

When commands are read from a tty, the interpreter is said to be in interactive mode. In this mode it prompts for the next command with the primary prompt, usually three greater-than signs ( >>>); for continuation lines it prompts with the secondary prompt, by default three dots (...). Typing an EOF character (Control-D on Unix, Control-Z on DOS or Windows) at the primary prompt causes the interpreter to exit with a zero exit status.

The interpreter prints a welcome message stating its version number and a copyright notice before printing the first prompt, e.g.:

python
Python 1.4 (Oct 25 1996)  [GCC 2.7.2]
Copyright 1991-1996 Stichting Mathematisch Centrum, Amsterdam
>>>



guido@cnri.reston.va.us