The goal of this tutorial is to give a concise introduction to Python and is aimed at Civil and Environmental Engineering undergraduate and graduate students. This tutorial is by no means comprehensive. There are several very good detailed sources for Python. Some of the popular Python resources are listed below:


If the figures in this tutorial appear too small or too big, try a different browser. If the formatting appears odd on multiple browsers, send me an email and I will do my best to fix the issue.

Installing Python

This section provides instructions for installing Python. There are several python variants and distribution available. I normally use the Anaconda distribution. Anaconda is an open source Python distribution whcih contains most of the essential libraries we need for our application. I normally use Python to link up with Gurobi optimization software. Often the Anaconda distribution updates itself faster than the Gurobi Python support.