9 Dec

See Final Review

7 Dec
Comparing binary search and ternary search
5 Dec

Another look at GUI using Tk. Examples: 5 Dec Examples

2 Dec

table-lookup, regular expressions, more on the game algorithm, reducing webserver function/method size --- examples, by request 2 Dec Examples

30 Nov
more on classes and methods; representation of tables; random number generation
28 Nov
classes, objects, networking
16 Nov
stdin, stdout, redirection, sys.args PLUS start of try/except
14 Nov
file objects, the read() method, and for line in F -- patterns to process files
11 Nov
raw_input() function, two styles of validation (pre and post), plus the format() method for templates.
9 Nov
turtle and teken, two styles of drawing using (x,y) coordinates
7 Nov
How break and continue work with for and while loops.
4 Nov
Loop Patterns and deleting items in loops.
2 Nov
Documentation (Chapter 20). More about loops.
31 Oct
Recursion.
28 Oct
More examples of for loops (like nested loops and early return).
26 Oct
Begin of iteration (for loop) and recursion from Chapter 19.
24 Oct

Modules (and how to navigate through Python Standard Library) Some Module Examples.

21 Oct
Mutating functions and mutating methods.
19 Oct
Aliasing of variables (for mutables).
17 Oct
Scope of variables in functions. Start of Chapter 17.
14 Oct
Variables within functions: scope of variables.
12 Oct
Start coverage of variables and assignment statements.
10 Oct
Midterm review.
7 Oct
Exercises with functions, generators and problem-solving.
5 Oct
More on Chapter 14, showing dictionary comprehensions and generators.
3 Oct
Continue Chapter 14, on list comprehensions.
28 Sep
Finish split and join, also some string methods (like replace). Start Chapter 14, on functionals (map, filter, join), builtins (max, min, all, any, zip, sorted) and range expressions.
26 Sep
Starting slicing and a bit of split/join.
23 Sep
More on if/elif and else.
21 Sep
Chapter 12 on if.
19 Sep
Chapter 11 on unit testing, start of conditional logic.
16 Sep
Ending Chapter 9, continuing functions with Chapter 10.
14 Sep
Most of Chapter 9 on functions.
12 Sep
Finish Chapter 8, covering long strings and newline suppression. Start Chapter 9.
9 Sep

Start Chapter 8, stressing the difference between a script and interactive. It is NOT NORMAL to see ">>>" working with Python programs -- that's just for calculator mode. This motivates printing. It's VERY IMPORTANT to understand the difference between a string's value and the formatted, printed view of a string.

7 Sep
Finish Chapter on expressions. Chapter 8 on printing is next, and the first Homework due 15 Sep is about printing.
2 Sep
Start Chapter 7 on expressions.
31 Aug
Finish Chapter 6 on operators.
30 Aug
Discussion section covers indexing in Python, e.g. "indexing"[-1].
29 Aug
Starting Chapter 6 with hierarchy of types, operators for numers and sequences, booleans. The ICON site for the course is set up, including a final exam date (16 December). First quiz.
26 Aug
Finishing up Chapter 5 on Python Types with aggregate types: lists, tuples, dictionaries. Lecture shows some paper-and-pencil techniques to understand complicated lists. Next reading assignment posted.
24 Aug
Introducing Python Types. The lecture followed the reading assignment, but also showed some videos motivating the use of Python interactively to learn.
22 Aug
First lecture - this is mainly orientation, explaining how the web site works, the syllabus, an overview of the course, and the first reading assignment

Lecture Notes (last edited 2014-05-25 18:29:53 by localhost)