Python offers an interactive mode that lets you evaluate an expression at a time. This is an excellent way to learn the language. We will step rapidly through the main features of the language in interactive mode. We won’t provide detailed explanations, since most features are remarkably clear and obvious anyway.
Either go to an MS-DOS prompt, or (if you’ve already installed it) start PythonWin. You should see something like this:
Pythonwin 1.5.2b2 (#0, Feb 16 1999, 17:09:09) [MSC 32 bit (Intel)] on win32 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam Portions Copyright 1994-1998 Mark Hammond (MHammond@skippinet.com.au) >>>
You can type in simple expressions, which are evaluated for you:
>>> 2+2 4