Here you will find the slides used in lectures, the worksheets that you bring to the lectures, and any programs or other files — mostly shell interactions — created during the lectures. The worksheet and slides will always be posted before the lecture. The worksheet is intended to help you take notes during the lecture.
The reading lists are approximate past the first couple of weeks. They are retrospective: it is assumed you read after the lecture, not before, though the totally prepared student will of course read both before and after, for maximum illumination. (I think I did that for one course when I was a student.)
There are some slide sets that we will re-use from week to week, accumulating new material at the beginning. This means that the numbering of previous slides will change as new slides are added, but there will never be many slides and they will generally be labelled with a date. These are the re-used sets:
| Week | Dates | Readings | Worksheet | Slides (PDF) | Programs | Other files |
|---|---|---|---|---|---|---|
| 1 | Jan 9 – 13 | Chapter 1 (Introduction) | w1.pdf | Introduction | hello.py, price.py | sh1.txt, sh2.txt, sh3.txt |
| 2 | Jan 16 – 20 | Ch. 2 (Hello, Python) | w2.pdf | Modules and booleans | grades.py | sh1.txt, sh2.txt |
| 3 | Jan 23 – 27 | Ch. 3 (Strings) | w3.pdf | Strings | salute.py, p5.py | sh1.txt, sh2.txt, sh3.txt, sh4.txt, sh5.txt, sh6.txt |
| 4 | Jan 30 – Feb 3 | Sections 7.2 (while), 5.1–5.4, 5.7 (lists), a start on 5.8 |
w4.pdf | (None) | scope.py, first_while.py, anagrams.py | sh1.txt, sh2.txt, sh3.txt, sh4.txt |
| 5 | Feb 6 – 10 | Sec. 5.5–5.6, 5.8 (slicing, aliasing, nested lists) | w5.pdf | (None) | list_fns.py | sh1.txt, sh2.txt, sh3.txt, sh4.txt |
| 6 | Feb 13 – 17 | Sec. 5.10, Ch. 8 (Files) | w6.pdf | (None) | square_list.py | sh1.txt, sh2.txt |
| Feb 20 – 24 | Reading Week | |||||
| 7 | Feb 27 – Mar 2 | Midterm test | Files | debug.py | sh1.txt, unix.txt, dos.txt | |
| 8 | Mar 5 – 9 | Sec. 5.9 (tuples), 9.2–9.3 (dictionaries), Sec. 4.5 (Testing) |
w8.pdf | Testing | testing.py |
tuples.txt,
dict1.txt, dict2.txt |
| 9 | Mar 12 – 16 | Sec. 15.1–15.3 (Databases) | w9.pdf | Databases | database_intro.py, database.py | practice.txt, precipitation.txt |
| 10 | Mar 19 – 23 | Sec. 15.7, 15.9 (Databases); Week 10 worksheet (CSV files) |
w9.pdf,
w10.pdf |
(None) | database.py, joins.py | precipitation.txt, temperature.txt, geography.txt, practice.txt, db1.txt, db2.txt, joins1.txt |
| 11 | Mar 26 – 30 | Sec. 15.9 (Databases); Sec. 12.1 (More on Functions); Week 10 worksheet (CSV) | w11.pdf | Regular expressions | joins.py, params.py | precipitation.txt, temperature.txt, geography.txt, db1.txt, db2.txt, example.csv, csv.txt, params1.txt, params2.txt, params3.txt |
| 12 | Apr 2 – 5 | Week 10 worksheet (command line); Sec. 12.2 (Exceptions) | (None) | (None) | callfuns.py, myprog.py, simple_except.py, except.py |
exam format,
cmdline.txt |