Next / Previous / Contents / Shipman's homepage

3.1. Using Python in Windows

A good Windows package for Python is ActivePython.

You can get conversational mode from StartAll ProgramsActiveState ActivePython 2.7Python Interactive Shell.

To write a program:

  1. StartAll ProgramsActiveState ActivePython 2.7PythonWin Editor.

  2. Use FileNew, select Python Script in the pop-up menu, and click OK. This will bring up an edit window.

  3. Write your Python program in the edit window, then use FileSave As... to save it under some file name that ends in “.py”.

  4. To run your program, use FileRun. In the “Run Script” popup, enter the name of your program in the field labeled Script File, then click OK.

The output will appear in the “Interactive Window”.

You may also run a Python script by double-clicking on it, provided that its name ends with “.py”.