Installing Python 3.2

Installing the Python language on your computer is not difficult, and it will greatly simplify your life if you can do your assignments on your own machine.

We will use Python 3.3.0, NOT Python 2.7.3. If you write a program using Python 2.7 (or any version earlier than Python 3.0), it will not work when we try to grade it. So please be careful to install 3.3 and NOT 2.7.

Installing Python for Windows

To install Python, go to the official Python download page, and select the right Python 3.3.0 installer for your system. The Python 3.3.0 installers are in the middle of the page.

When the installer runs, just keep clicking "Next" to accept the standard installtion options, and finally "Finish".

When you are done, if you left-click on the Start menu at the bottom-left of your screen, and then "All Programs", you should see "Python 3.3" in the list of programs you can run. Click on it, and then select "IDLE- Python Interpreter" to get started! (Note: not "Command line").

Installing Python on a Mac

OS-X comes with a version of Python pre-installed. But it's an older version, and we will be using version 3.3.0, so you have to install it as well. This means you will have two Pythons, but you know if you are using IDLE that you are using the new one, since the pre-installed Python does not include IDLE.

From the official Python download page, choose the installer for Python 3.3.0 for your version of OS X. After installing, you should find two apps in your Python3 folder in Applications, "IDLE" and "Python Launcher". We'll use mostly IDLE, but Python Launcher just runs the program (like double-clicking in Windows). You can put both in your dock, and then drag the program to the one you want. To make one or the other the default, control-click on a python program, select "get info", then change the "Open with" option. If you do that, double-clicking on a Python program will automatically open it using the selected option.

Online Python Tutor

The Online Python Tutor is a Web site that runs small Python programs step-by-step, which is great for figuring out how they work and sometimes for figuring out why they don't work. Be sure to switch it to Python 3 before you start.

PyScripter

The PyScripter program is a much fancier program for writing and looking at Python programs than IDLE. It includes the step-by-step execution mode, and other things to help debug big programs. It is available for free from MMM-experts, unfortunately only for Windows. If you end up doing a lot of Python in Windows you will probably want to start using it.