Hands-on Python Tutorial

By Dr. Andrew N. Harrington

Home Page for Version 3.1+

This page has materials for Python 3.1 and later, which is incompatible in various ways with earlier versions. If you are using Python 2.5, 2.6, or 2.7, go to the older compatible version here.

The Hands-on Python Tutorial formats:

Browse web page sections online

Zip file for optional download of all web pages. The web page to open after expanding the zip file is handsonHtml/index.html. This form is useful if you are going to be offline while reading.

PDF file in paged format for printing. Some people even prefer this version while on a computer with a wide enough window. The pdf uses different fonts and layout than the web version.

Example programs needed to test out code used in the tutorial:

Zip file for download. Be sure to download this file and then expand it to have all the Python example programs needed for the tutorial. More detailed installation instructions are in the tutorial under Section 1.2.1, Your Python Folder and Python Examples.

to have all the Python example programs needed for the tutorial. More detailed installation instructions are in the tutorial under Section 1.2.1, Your Python Folder and Python Examples. For a quick look, you may also browse individual example code files online.

The tutorial continues to be updated and expanded. You can see an outline of the latest major changes in the change log.

Feedback Appreciated From All I get feedback from my introductory class, but not so much from other people. I am looking to make this tutorial work for as wide a group as possible. I would really appreciate the questions and comments of others, too, so I can improve it as much as possible. Do not be shy! (aharrin <atsign> luc <period> edu) If you write about your experience, please briefly let me know your background and learning situation. Thanks. If you have suggestions for me, please let me know if I may mention you in the change log in case I make changes suggested by you.