ICS 32A Fall 2019
Notes and Examples

Notes and examples, from lecture and otherwise

Over the course of the quarter, I'll be providing notes and commented code examples for you, most especially when I write substantial code examples in lecture — beyond just experimentation in the Python interpreter or short code fragments —. When I do, I will be turning them into full-scale code examples and posting them here for you. Be aware that there is a process involved in fleshing out a lecture example — rather than just posting code exactly as we wrote it, I'd like to turn it into something more complete and instructive — and this process takes some time, so it's best, in general, not to expect these to be available right away, but I will generally try to have them available before the next lecture, at the latest.

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 Date(s) Title
Th 9/26 Course Introduction
Th 9/26
Tu 10/1
Python Basics
Th 10/3 Functions
Tu 10/8 Tuples and Lists
Tu 10/8 Type Annotations
Th 10/10 Files, Paths, and File Systems
Th 10/10
Tu 10/15
Tu 10/15 Recursion
Th 10/17 Modules
Tu 10/22 Networks and Sockets
Th 10/24 Namedtuples
Th 10/24
Tu 10/29
Th 10/31 Classes
Th 10/31 Sets and Dictionaries
Th 11/7 Duck Typing and Interfaces
Tu 11/12 URLs and HTTP
Th 11/14 Web APIs
Tu 11/19 Two-Dimensional Lists
Tu 11/19 Third-Party Libraries
Th 11/21 PyGame Basics
Tu 11/26
Tu 12/3
The "Spots" Game
Th 12/5 Inputs and Sounds