Lectures

On this page you can find all the course material that we use throughout the lectures!

Use the buttons to either view the entire source code for the lecture or download a PDF if you want to make notes. In addition, we supply you with the raw version of the lecture, which shows your each and every command that we used in the live session. Use this if you want to check exactly what was going on in the lecture, but expect errors.

Day 1

Basics

In this first lecture we will introduce the Python programming language, make sure that Python was installed correctly and explain some core concepts that you will use throughout the course. You will also learn how to use strings, numbers and use Python as a (very powerful) calculator! Don't be afraid, no previous knowledge is required!

Download View online

Lists & Loops

In the second lecture we will show you how to make Python work for you (we are all lazy, after all). You will learn to loop over lists, modify them and create new ones. In addition, you will learn how to control the flow of data using if and else statements.

Download View online

Assignments



Day 2

More Lists, File I/O

In this third lecture you will learn how to read files from your computer, store the relevant data, process the data and then write them into another file.

Download View online

Dictionaries

In this session we will introduce one of the most versatile dataypes used in Python! Dictionaries (in other languages often referred to as hash tables or hash maps) are unordered collections of key -> value pairs. Sounds complicated? Well, actually it is not. Once you start using them you will appreciate how powerful they are!

Download View online

Assignments (morning)

Data for the assignments:

Assignments (afternoon)

Day 3

NumPy, SciPy & Matplotlib

In this session you will learn how to use NumPy and Scipy - very powerful extensions of the Python language that implement some new datatypes, such as NumPy arrays and a bunch of statistical functions.

Download View online

Assignments

Data for the assignments:

Debugging

Anyone who has never made a mistake has never tried anything new (as a famous physicist once remarked). Today you learn how to deal with your mistakes that you make when programming something new in Python.

Download View online

Day 4

Pandas & Matplotlib

In this session you will learn how to use Pandas, a module that implements R like DataFrames for data manipulation and analysis.

Download View online

Revision

In this session we will revisit all exercises introduced in the previous sessions and try to fill any gaps and answer your questions.

Assignments

Data for the assignments: