Python#

Python Programming Workshop#

Welcome to the Brandeis Library Python Programming Workshop! Whether you are participating synchronously or asynchronously, all of the materials we will be using are listed below for each topic.

Each lesson includes a link to a page on this site, as well as links to filled-in and code-along Python notebooks in Google Colab, an online cloud-based app that runs Python without any installation necessary.

Topics#

  1. Setup and installation

  2. Jupyter notebooks

  3. Fundamentals [ code-along notebook / filled-in notebook ]

  4. Data structures [ code-along notebook / filled-in notebook ]

  5. Booleans and conditionals [ code-along notebook / filled-in notebook ]

  6. Loops [ code-along notebook / filled-in notebook ]

  7. NumPy [ code-along notebook / filled-in notebook ]

  8. Pandas [ code-along notebook / filled-in Jupyter notebook ]

  9. Matplotlib and seaborn [ code-along notebook / filled-in notebook ]

  10. Writing functions [ code-along notebook / filled-in notebook ]

  11. Statistical tests

Using Colab#

We will be using Google Colab to run our code. No Python installation will be required for this workshop; you just need to be signed into a Google account.

Saving notebooks to your drive#

Once the notebook is open in Colab, click on File in the upper left. If you cannot see File, try clicking the down arrow in the top right. Click Save a copy in Drive. You can rename the file, and the copy will be located in a new folder in your Google Drive called Colab Notebooks. You can now freely save changes to your personal version of the file.

If you would prefer not to use Colab, click on File and then Download > Download .ipynb. You will need Anaconda or Miniconda installed. You can use a variety of different programs to interact with the notebook, such as Spyder, VS Code, PyCharm, and more.

Practice Examples and More Training#