Module 1: Basic Python

Module 1: Basic Python#

“The computer is incredibly fast, accurate, and stupid. Man is incredibly slow, inaccurate, and brilliant.”
–Leo Cherne

In this module, we will cover the fundamentals of Python. Much of this content can be found in the official Python tutorial, Copyright 2001-2023, Python Software Foundation. It is used here under the terms of the Python License.

Interacting Python#

There are three main ways to use Python:

  • running a python file (.py) from the command line, e.g. > python myscript.py

  • through an interactive console (Python interpreter)

  • in an interactive notebook (e.g. Jupyter)

In this course, we will mostly be interacting with Python via jupyter notebooks.

The following video demonstrates the three different modes of interaction.

Once you have watched the video, you can launch your own blank jupyter notebook and follow along.

Let’s get started!