Lectures

Click on a lecture to see the video, if it is available. Videos are restricted to a valid Cornell netid login. However, slides and demo code may be downloaded without a Cornell netid.

For-Loops

Lectures

The reading for this lecture is Sections 8.3, 8.7, Chapter 10.

Lists (and sequences) come with their own special control structure: the for-loop. This is the last traditional control structure we will see for a while.    Watch ›

October 10, 2019 slides handout demos

Lists (and Sequences)

Lectures

The reading for this lecture is Sections 10.1-10.2 and 10.4-10.6.

Today we introduce another sliceable data type: lists. They are similar to strings, except that they can contain data other than text.    Watch ›

October 8, 2019 slides handout no demos

Asserts and Error Handling

Lectures

The reading for this lecture is Appendix A.

In this lecture we show how to use our understanding of Python memory to read error messages. We also show how to create our own error messages and why.    Watch ›

October 3, 2019 slides handout demos

Memory in Python

Lectures

There is no supplementary reading for this lecture.

The last lecture pulled back the curtain on what really is happenind with memory in Python. Today we put everything back together.    Watch ›

October 1, 2019 slides handout demos

Objects

Lectures

There is no supplementary reading for this lecture.

This lecture introduces the notion of objects, a new type of data. It will also force us to question what we know about Python.    Watch ›

September 26, 2019 slides handout demos