Class Notes

Refer to this page for class notes, Python scripts, and scheduled readings.

Week 1 Topics and Code Reading and Slides
Tues, Sep 4 Introduction and Overview Slides
Thur, Sep 6 Python and IDLE

hello-world.py
first-program.py
Python: Visual QuickStart Guide, Chapter 1

Installing Python 3

Slides
Week 2
Tues, Sep 11 Data Types and Variables

shell-transcript-1.txt
Python: Visual QuickStart Guide, Chapter 2: 7–21

Slides
Thur, Sep 13 Data Types and Variables

shell-transcript-2.txt
Python: Visual QuickStart Guide, Chapter 2: 22–28

Slides
Week 3
Tues, Sep 18 Writing Programs

lucky-number.py
favorite-color.py
how-much-in-change.py
Python: Visual QuickStart Guide, Chapter 3: 29–33

Slides
Thur, Sep 20 Basic Input and Output

line-break-haiku.py
end-character.py
phone-number-generator.py
your-age.py
write-to-file.py
Python: Visual QuickStart Guide, Chapter 3: 34–40
Week 4
Tues, Sep 25 Boolean Logic

password.py
voting-age.py
dates.py
Python: Visual QuickStart Guide, Chapter 4: 41–46

Slides
Thur, Sep 27 Control Structures

pizza-or-sushi.py
cell-contract-renew.py
voting-age-citizen.py
date-with-month.py
card-game.py
Python: Visual QuickStart Guide, Chapter 4: 47–51
Week 5
Tues, Oct 2 Review

day-of-week.py
pet-owner.py
day-and-time.py
Early Midterm Review Slides
Thur, Oct 4 Midterm Exam 1
Week 6
Tues, Oct 9 Repetition Structures

basic-counter.py
counter-with-range.py
counter-with-range-step.py
counter-with-range-inverse-step.py
multiplication-table.py
basic-while-counter.py
while-loop-countdown.py
Python: Visual QuickStart Guide, Chapter 4: 52–56

Slides
Thur, Oct 11 Repetition Structures

repetitive-statements.py
numbers-to-sum.py
numbers-to-sum-while.py
repetitive-statements-formatted.py
numbers-to-sum-unknown.py
shopping-trip.py
while-loop-with-break.py
Python: Visual QuickStart Guide, Chapter 4: 57–62

Slides
Week 7
Tues, Oct 16 Fall Break—no classes scheduled
Thur, Oct 18 Introduction to Functions

times-table.py
draw-square.py
triangle.py
temp-convert-function.py
circle-area-function.py
Python: Visual QuickStart Guide, Chapter 5: 63–68

Slides
Week 8
Tues, Oct 23 Functions

circle-area-loc-var.py
circle-area-global-var.py
multiply-table-functions.py
phone-generator-main.py
password-main-function.py
Python: Visual QuickStart Guide, Chapter 5: 69–76

Slides
Thur, Oct 25 Functions and Modules

greeting-default-param.py
square-function.py
shapes.py
basho.py
haiku.py
name-program.py
Python: Visual QuickStart Guide, Chapter 5: 77–79

Slides
Week 9
Tues, Oct 30 Classes canceled due to Hurricane Sandy
Thu, Nov 1 Classes canceled
Week 10
Tues, Nov 6 Strings and Characters

print-characters.py
character-replace.py
random-capital.py
name-mashup.py
Python: Visual QuickStart Guide, Chapter 6: 81–89

Slides
Thur, Nov 8 Strings and Characters

sentence-type-1.py
sentence-type-2.py
price.py
text-translation.py
mouse-finder.py
Python: Visual QuickStart Guide, Chapter 6: 90–98

Late Midterm Review Slides

Sample Questions
Week 11
Tues, Nov 13 Midterm Exam 2
Thur, Nov 15 Programming Graphics

name-finder.py (Regular Expressions)
draw-square-red.py
draw-rectangle-input.py
draw-circle.py
How to Think Like a Computer Scientist, Chapter 3

Slides

Color names recognized by the turtle module
Week 12
Tues, Nov 20 Programming Graphics

draw-triangle.py
draw-2-triangles.py
shapes-from-instances.py
square-from-loop.py
square-pattern-from-loop.py
square-pattern-colors-from-loop.py
functions-turtle.py
How to Think Like a Computer Scientist, Chapter 4

Turtle Graphics Documentation
Thur, Nov 22 Thanksgiving Recess—no classes scheduled
Week 13
Tues, Nov 27 Lists

letters-numbers.py
grocery-list.py
Python: Visual QuickStart Guide, Chapter 7: 99–101, 105–111

Slides
Thur, Nov 29 Dictionaries

above-90.py
filtered-with-while.py
city-temp-dictionary.py
city-temp-dictionary-alt.py
filtered-random-numbers.py
Python: Visual QuickStart Guide, Chapter 7: 115–118
Week 14
Tues, Dec 4 Input and Output

dictionary-search-values.py
total-price-formatted.py
shopping-total.py
format-total-function.py
print-from-external-file.py
alter-text.py

frost.txt
Python: Visual QuickStart Guide, Chapter 8: 121–131

Slides
Thur, Dec 6 Input and Output

read-file.py
word-count.py
random-line.py
randomize-lines.py
sort-names.py
write-file.py
write-file-with-check.py
text-editor.py
current-weather.py

frost.txt
dickens.txt
names.txt
Python: Visual QuickStart Guide, Chapter 8: 132–136, 139–140
Week 15
Tues, Dec 11 Review Slides
Thur, Dec 13 Review

exercise.txt
random-search-from-file.py
sonnets.txt