Fall 2026 · Wolfcode
Computer Science I.
An introduction to programming using Python.
Topics covered include basic program design; program flow including decisions, functions, and loops; command-line and file input/output; variables and types; and string and sequence processing.
Course outline
Variables & Types
变量与类型
Name a value once, reuse it many times. Learn the three core types of CSC 141 — int, float, str — and how Python keeps them straight.
Conditionals
条件分支
Make decisions: if / elif / else, comparison and logical operators, and the order-of-branches trap. Strictly aligned with Think Python §5.1–§5.6.
Loops
循环
Do something many times. for / range, while, break — and the four patterns (accumulator, counter, tracking variable, while-true) that cover 95% of beginner loops. Strictly aligned with Think Python §7.1–§7.4.
Functions
函数
Name a group of statements, eliminate repetition, debug the parts one at a time. def / return / parameters / default args / composition. Strictly aligned with Think Python §3.4–§3.11 and Chapter 6.
Lists
列表
The universal container for sequences of values. Create, index, slice, mutate — and the copy-first idiom that saves you from aliasing bugs. List comprehensions compress map+filter into one line. Strictly aligned with Think Python §10.1–§10.12.
- 05.01Walkthrough: List Basics例题: 列表入门python-lists 8m
- 05.02List Basics列表入门python-lists python-loops 15m
- 05.03List Comprehension列表推导式python-lists python-loops 20m
- 05.04List Methods列表方法python-lists 20m
- 05.05Homework: Student Grade Report作业: 学生成绩报告python-lists python-functions python-loops 45m