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.

Generators

Generators

This lecture references Videos 28.1-28.7.

In this lecture we introduce generators, which are a very “Pythonic” feature. They give us a way to speed up for-loops, and introduce us to an entirely new way of thinking about programs.    More ›

November 18, 2021 handout slides demos

GUI Applications

GUI Applications

This lecture references Lesson 27.

This lecture combines while-loops and classes to show how to make complex graphical applications. This lecture will provide you all that you need to know to get started on the last assignment.    More ›

November 16, 2021 handout slides demos

While Loops

While Loops

This lecture references Lesson 26.

Today we introduce while-loops, which are an alternate form of iteration. We show why they are different from for-loops, and when to use them.    More ›

November 11, 2021 handout slides demos

Dynamic Typing

Dynamic Typing

This lecture references Lesson 24, 25.

Typing is the act of determining the type of a value. Today we question why typing is so important, and show why this has become much trickier with the introduction of subclasses.    More ›

November 9, 2021 handout slides demos

Operators and Abstraction

Operators and Abstraction

This lecture references Videos 23.1-23.7.

We have seen several mysterious double-underscore methods in Python classes. In this lecture show why these methods are so important.    More ›

November 4, 2021 handout slides demos