CSC108H (UTM, Fall 2010): Lectures

Lectures

This page will contain notes from lecture, mainly from code developed during lecture. We will try to post these notes after each lecture.

At present this schedule is very tentative. It will be updated as the term progresses.

Week Reading Monday Wednesday Friday
1 Intro: Ch 1 Labour Day Welcome! Intro to Python
Introductory slides (pdf)
CodeLab slides (pdf)
sunset program (py)
Administrative Details and Basics
admin slides (pdf)
bio_calc.py
bio_calc_better.py
2 Python Basics and
Functions: Ch 2, 7.1
Variables
slides(pdf)
Variable Types and Naming
types, expressions, names (pdf)
Functions
slides (pdf)
functions.py
total_red.py
say_hello.py
3 Modules: Ch 4
Ifs and Booleans: Ch 6
Functions and Scope
slides (pdf)
namespaces.py
local_global.py
bad_style.py original
bad_style.py improved

If
slides (pdf)

1st year Cohort Session academic integrity slides (pdf)
docstrings and mutability demonstration
docstrings slides (pdf)
4 Strings: Ch 3
Mutability: Ch 5.6
Mutability
slides (pdf)
mutable_par.py
immutable_par.py
Strings
counting_e.py
Strings
Strings (pdf)
reverse.py
remove_spaces.py
5 While: Ch 7.2-7.7
Lists: Ch 5
While
slides (pdf)
yes_no_answer.py
while_example.py
Finishing While and Lists Intro
mystery.py
Transcription of Python Shell Commands (txt)
Lists and Loops
Test Review
Cover Page     API
Loops over Lists (py)
6 Files: Ch 5.10, 8 Thanksgiving -- No Class! Test 1
Solution
Lists and Mutability
List Practise (py)
7 Dictionaries: Ch 9.2, 9.5 Files
valid_response.py
file_basics.py
second_file_example.py
transcript of shell
Tuples and Dictionaries
Announcements (pdf)
transcript of shell

1st year Cohort Session Time Management with Scrum slides (pdf)
Dictionaries and Loops
reverse_phone.py example
8 Dictionaries Dictionaries and Testing
lazylit.py (final version for Andrew))
More Lazy Lit Example
lazylit.2-0.py (final version for Michelle)
Announcements Slides (pdf))
Testing
functions.py
test_functions.py
dict_functions.py
test_dict_functions.py
9 Testing and Debugging:
Ch 4.5, 12.3-12.4
Functions as First Class
runtime.py
Announcements Slides (pdf)
Debugging Example
Announcements Slides (pdf)
insert_after.py
test_insert_after.py
Classes
Slides (pdf)
Event.py
10 Classes: Ch 13
Guest Lecture: Arnold Rosenbloom
Test 2
Test Cover Page (pdf)
API (pdf)
Classes
Announcements Slides (pdf)
Day.py
Event.py
11 Classes Classes
day.py
event.py
Sorting:list.sort and Writing a Comparison Function
day.py
event.py
Passing A Reader to Functions
Announcement Slides
example.py
Coffee class
Two input text files: ganish.txt michelle
Sorting Slides
12 Sorting and Complexity:
Ch 11.3-11.4, 10
Sorting and Searching
sorting.py
Timing sorting code (py)
Merge Sort and Complexity
Complexity Slides
Complexity
Code Examples (py)
13 Review Wrap-up and Review
Complexity Code Examples (py)
Announcements (pdf)
Study Period - No Class! Study Period - No Class!