Lecture Slides
The slides from lecture are provided as .pdf files,
convenient for printing.
Some of them are accompanied by the example Python programs we
write in class.
To put the example Python programs onto your computer
(at least in Windows), right-click on the link for the program
and select "Save target as.." or "Save as..".
-
Fri 9/28 slides. Read pages 1-11 in the textbook.
-
Mon 10/1 slides. Read pages 28-35 in the textbook.
-
Wds 10/3 slides. Read pages 17-28 in the textbook.
Also see page 47 on raw_input().
-
Fri 10/5 slides. Read pages 51-61 in the textbook.
-
Mon 10/8 slides. Pages 76-81.
-
Wds 10/10 slides. Pages 65-75.
-
Fri 10/12 slides.
eir.py, calculating the effective interest rate.
-
Mon 10/15 slides. Pages 95-99.
-
Wds 10/17 slides. Pages 61-64.
-
Fri 10/19 slides. Sample midterm
questions.
-
Wds 10/24 slides. Pages 89-95.
-
Fri 10/26 slides. See the graphics module documentation.
-
Mon 10/29 slides.
-
Wds 10/31 slides. Pages 159-169.
-
Fri 11/02 slides. Pages 174-178.
isInt2.py, a function using a global variable.
-
Mon 11/05 and Wds 11/07 slides. Pages 179-182
on global and local variables.
-
Fri 11/09 slides.
txt2csv.py, program that reads the
file billboard.txt, cleans it up, and writes
it to a .csv file that can be opened in Excel.
-
Mon 11/13 slides. Pages 213-218 on exceptions,
but don't worry too much about specific
exception types. Back to pages 38-41 for string methods.
-
Fri 11/16 slides. Midterm review.
-
Mon 11/26 slides. Pages 178-182 on global variables, pages 77-78 on the break statement, and start reading pages 147-155 on dictionaries in preparation for Wds. lecture.
winners.py, program that answers queries about which district a representative comes from, break.py, program that demonstrates the break statement in a for loop.
-
Wds 11/28 slides. Pages 147-155 on dictionaries.
winners.py, program that answers queries about which district a representative comes from using a dictionary, and petDict.py, a small program demonstrating a dictionary.
-
Fri 11/30 slides. Graphics and multiprocessing.
-
Mon 12/3 slides. When to use a dictionary, a bit about how they work on the inside.
secret.py, a program that displays a series of graphics
windows. fakeDictionary.py, a program that demonstrates how to fake a dictionary with a list. This is actually how dictionaries work.
-
Wds 12/5 slides. What you should have gotten out of this course, using URLs.
getURL.py, a program that gets a file from a URL, scrapes out the names of links to Python programs, and get all the Python programs over the internet.
-
Fri 12/7 slides. Review for final.