ICS 33 Spring 2025
Notes and Examples


Notes and examples, from lecture and otherwise

Over the course of the quarter (and in lieu of a course textbook), I'll be providing notes and commented code examples for you, detailing all of the topics we cover in the course. When we write code examples in lecture, you can assume that they will be turned into full-scale code examples and posted here; for other topics, I'll provide a detailed set of lecture notes.

Note that you are not permitted to simply copy and paste this code into your own projects, but, of course, the techniques employed may also be of general use to you in your work. These examples are intended to give you clean, well-documented examples of some of the things we cover in lecture (and possibly a few things that we don't, time permitting), so that you can be free in lecture to avoid trying to take detailed notes when we're writing code together, instead concentrating on understanding the process and the bigger-picture concepts at work.

Lecture Week Title
Week 1 Course Introduction
Week 1 Modules and Namespaces
Week 1 Classes and Objects
Week 1 Functions and Their Parameters
Week 2 Context Managers
Week 2 Asymptotic Analysis
TBD Searching
TBD Databases
TBD Comprehensions
TBD Iteration
TBD Generators
TBD Using and Combining Generators
TBD The Python Data Model
TBD Inheritance
TBD Revisiting Recursion
TBD Functional Programming
TBD Decorators
TBD Class Design
TBD Abstract Base Classes


Python prerequisite background

If it's been a while since you've last used Python, you might also want to work through the Notes and Examples from my most recent ICS H32 offering, which cover essentially all of the Python topics that we'd expect you to understand at the outset of this course.