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..".
The same goes for data files.
-
Mon 1/7 slides. Read Chapter 1 in the
textbook.
The first program
is due on Thursday at 10pm.
-
Wds 1/9 slides.
-
Fri 1/11 slides. The second program is due Thurs Jan 17 at 10pm.
-
Mon 1/14 slides.
guessNum.py, inputCheck.py
-
Wds 1/16 slides.
retire.py
-
Fri 1/18 slides.
monthly.py, gettingFloat.py
-
Wds 1/23 slides.
We did not actually cover the break statement in class.
-
Fri 1/25 slides.
Midterm review.
-
Wds 1/30 slides.
Break, continue, nested loops, storing data in a list.
Counting the number of flips to get 10 heads.
countFlips.py
-
Fri 2/1 slides.
Lists and strings are sequences, the in operator, reading and printing a file.
readFile.py, and input file menu.txt
-
Mon 2/4 slides.
Extracting data from a line in a file, intro to temperature assignment.
calorieCounter.py,
and input file menu.txt
-
Wds 2/6 slides.
Filecabinet metaphore for lists, lists are mutable, writing a file.
listOZeros.py,
countFlipsWriteFile.py