M4: Classes and Objects

This module provides an introduction to Python classes and object-oriented programming.

Please note that, unlike modules 1-3, the lectures for this module span two weeks. We will have covered all the material necessary to do the team tutorial and the short exercises by Wednesday of Week 5 (October 27th), and the short exercises won’t be due until more than a week after that (November 5th).

Textbook Chapters

The chapters corresponding to this module are:

A PDF version of the textbook is also available here.

You will be asked to log in with your CNetID before you can see the textbook.

Please note that the lectures do not assume you have read the book chapters ahead of time. Unless you prefer to get a feel for the material ahead of a lecture, we suggest you instead plan to read the book chapters after the lectures, as a way to ensure you understood the material covered in the lectures, as well as to dig deeper into topics that we only cover at a high level in the lectures.

Lecture Examples

Team Tutorial

Team Tutorial #4: Classes and Objects

Remember that the Team Tutorial is not graded, but we nonetheless encourage you to complete it before Programming Assignment #4 is released.

Short Exercises

Short Exercises #4, due Friday, Nov 5 at 4:30pm CDT.

NOTE: Please note the non-standard due data and how, unlike previous modules, these short exercises are due about two weeks after they are assigned.

Programming Assignment

Programming Assignment #4, due Friday, Nov 12 at 4:30pm CST