Introduction to Computers and Programming
Fall 2010 -- Section 7: Python
Instructor: Andrew Case

All official announcements will be made to the Mailing List.  If enrolled in this course you need to be subscribed to the mailing list and should have received a welcome email.


General .:. Syllabus .:. Class Notes .:. Assignments .:. Resources .:. Help

Class Notes

ClassDateTopicsReadingsSample Code
0Sept. 7Introduction 
1 Sept. 9 Programming Basics
Lecture Notes
Text: Chapters 1 & 3
Supplemental:
http://www.swaroopch.com/notes/Python_en:Introduction
http://www.swaroopch.com/notes/Python_en:Installation
http://www.swaroopch.com/notes/Python_en:First_Steps
example1-1.py
example1-2.py
example1-3.py
example1-4.py
example1-5.py
example1-6.py
2 Sept. 14 Programming Basics (cont'd)
Lecture Notes
Text: Chapter 2
Supplemental:
http://www.swaroopch.com/notes/Python_en:Basics
http://www.swaroopch.com/notes/Python_en:Operators_and_Expressions
example2-0.py
example2-1.py
pysession2-0.txt
3Sept. 16 Flow Control
Lecture Notes
Text: Chapter 4
Supplemental:
http://www.swaroopch.com/notes/Python_en:Control_Flow
example3-0.py
example3-1.py
example3-2.py
4Sept. 21 Flow Control (cont'd)
Lecture Notes
Text: Chapter 4
Supplemental:
http://www.swaroopch.com/notes/Python_en:Control_Flow
example4-0.py
example4-1.py
example4-2.py
example4-3.py
example4-4.py
5Sept. 23 Flow Control (cont'd) and Functions
Lecture Notes
Text: Chapter 5
Supplemental:
http://www.swaroopch.com/notes/Python_en:Functions
example5-break.py
example5-continue.py
example5-fun0.py
example5-fun1.py
example5-fun2.py
example5-nested-for.py
example5-nested-if2.py
example5-nested-if3.py
example5-nested-if.py
example5-nested-while.py
example5-while0.py
example5-while1.py
6Sept. 28 Functions
Lecture Notes
Text: Chapter 5
Supplemental:
http://www.swaroopch.com/notes/Python_en:Functions
example5-fun3.py
example5-fun4.py
example5-fun5.py
example6-fun0.py
example6-fun1.py
example6-scope.py
7Sept. 30 More Functions
Text: Chapter 5
Supplemental:
http://www.swaroopch.com/notes/Python_en:Modules
example7-rand0.py
example7-rand1.py
example7-factorial.py
8Oct. 5 Modules
Lecture Notes
Text: Chapter 5, Start reading Chapter 6
Supplemental:
http://www.swaroopch.com/notes/Python_en:Modules
modtest.py
printmod.py
stringmod.py
9Oct. 7 String Functions
Lecture Notes
Text: Chapter 6 stringmod.py
10Oct. 12Midterm #1
Study Guide
11Oct. 14 Recursion
Lecture Notes
Watch Inception factorial.py
fibonacci.py
12Oct. 19 More Recursion
Start reading Chapter 7: Data Structures factorial.py
fibonacci.py
fibtest.py
pysession.txt
13Oct. 21 Midterm #1 Review
Turtle Graphics Demo
Finish reading Chapter 7: Data Structures box.py
box-recursive.py
box-recursive-3d.py
the-downward-spiral.py
14Oct. 26 Problem Solving Like A Coder
Lecture Notes
Start playing with sample code from last class, and reading Turtle Module Documentation reverse.py
lines.py
15Oct. 28 String Review
Keep testing turtle graphics/functions. letter.py
monte.py
reg1.py
reg2.py
word1.py
word2.py
16Nov. 2 More Turtle Graphics
Keep testing turtle graphics/functions lines.py
rand.py
circle.py
circles.py
ven_circles.py
polygons.py
17Nov. 4 Recursion/Lists
Lecture Notes
Finish reading Chapter 7: Data Structures zenoparadox.py
beans.py
cards.py
18Nov. 9 Lists/Tuples/Sets/Dictionaries
Lecture Notes
Finish reading Chapter 7: Data Structures sieve.py
pysession-tuples.txt
pysession-sets.txt
pysession-dicts.txt
19Nov. 11 Data Structures In Practice
Lecture Notes
Finish reading Chapter 7: Data Structures points.py
runners.py
pysession.txt
20Nov. 16 Review, String Formatting
Lecture Notes
Chapter 8: Input/Output count.py
stats.py
pysession.txt
21Nov. 18 Midterm #2
Study Guide
22Nov. 23 File Input/Output
Lecture Notes
Chapter 8: Input/Output pysession.txt
beans.py
23Nov. 25 No Class - Thanksgiving Break
24Nov. 30 Exception Handling
Lecture Notes
beans.py
25Dec. 2 Midterm Review
Chapter 9: Exceptions
26Dec. 7 Object Oriented Programming
Lecture Notes
Chapter 10: Object Oriented Programming animal.py
27Dec. 9 Object Oriented Programming
Chapter 10: Object Oriented Programming vehicle.py
28Dec. 14 Final Exam Review
Study Guide
29Dec. 16Final Exam WWH102 1:30-3:20
Study Guide

© 2010 Andrew I. Case