These documents and videos provide information, help, and advice on CP104 topics.
These lectures are organized by topic, not by week - check the lab and assignment schedules as to when you should understand these topics.
Lecture attendance is not mandatory. Go through the notes and videos and bring your questions to lecture time.
Zybooks cover the same material. Their schedule is at Zybooks.
Notes | Recorded Lectures | Textbook Chapters/Sections | |
---|---|---|---|
1: - Lesson 1: L01.php | |||
Introduction | |||
Using the Text | |||
2: - Lesson 2: L02.php | |||
Program Design | |||
Output with Python | print
Function
|
||
Comments | |||
Variables | |||
Keyboard Input | |||
Calculations | |||
Notes | Constants | ||
3: - Lesson 3: L03.php | |||
Notes | Generalized Programming | ||
math
Module
|
|||
4: - Lesson 4: L04.php | |||
Function Introduction | 5.2 Defining and Calling a Void Function |
||
Function Parameters | |||
Function Returns | 5.8 Writing Your Own Value-Returning Functions |
||
Function Libraries | 5.6 Global Variables and Global Constants |
||
5: - Lesson 5: | |||
Simple Decisions | if
Statement
|
||
Complex Decisions | if-else
Statement
3.3 Comparing Strings |
||
Nested Decisions | if-elif-else
Statement
|
||
Notes | Logical Operators | 3.6 Boolean Variables |
|
Notes | Short Circuit Evaluations | ||
Notes | Fallthrough Algorithms | ||
Notes | Decision Problems | ||
6: - Reading Week | |||
7: - Lesson 6: | |||
Notes | Loops: for | 4.3 The for
Loop: A Count-Controlled Loop
|
|
Loops: for Running Total | |||
8: - Lesson 7: | |||
Loops: while | while
Loop: A Condition-Controlled Loop
4.5 Sentinels 4.6 Input Validation Loops 4.7 Nested Loops |
||
Notes | The Infinite while Loop | ||
9: - Lesson 8: | |||
Notes | Lists: Introduction | 7.2 Introduction to Lists |
|
Lists: Indexing | |||
Lists: Looping | |||
Lists: Slicing | |||
Lists: Operators and Methods | in
Operator
7.5 List Methods and Useful Built-in Functions |
||
Lists: Functions | 7.7 Processing Lists |
||
10: - Lesson 9: | |||
Notes | Strings: Indexing, Looping, and Slicing | 8.2 String Slicing |
|
Strings: Operators and Methods | |||
Strings: Functions | |||
11: - Lesson 10: | |||
Notes | Files: Introduction | ||
Files: Processing Lines | |||
Files: Processing Records | |||
12: - Lesson 11: | |||
Notes |