W WolfCode · CSC 141

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.

Examples on this site run in your browser — no install. Open the matching exercise in WolfCode to submit.

Course outline

Chapter 01

Variables & Types

变量与类型

≈ 75 min · 3 lessons

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.

  1. 01.01
    Your First Variable
    第一个变量
    python-variables 10m
  2. 01.02
    Integers & Floats
    整数与浮点数
    python-types 15m
  3. 01.03
    Strings & f-strings
    字符串与 f-string
    python-strings 20m
Chapter 02

Conditionals

条件分支

≈ 90 min · 5 lessons

Make decisions: if / elif / else, comparison and logical operators, and the order-of-branches trap. Strictly aligned with Think Python §5.1–§5.6.

  1. 02.01
    Walkthrough: Sign of a Number
    例题: 数的正负号
    python-conditionals 8m
  2. 02.02
    Letter Grade
    等级字母
    python-conditionals 15m
  3. 02.03
    BMI Category
    体重指数分类
    python-conditionals 15m
  4. 02.04
    Leap Year
    闰年判断
    python-conditionals 15m
  5. 02.05
    Homework: Tax Bracket Calculator
    作业: 阶梯税率计算器
    python-conditionals 35m
Chapter 03

Loops

循环

≈ 100 min · 5 lessons

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.

  1. 03.01
    Walkthrough: Countdown
    例题: 倒计时
    python-loops 8m
  2. 03.02
    Sum 1..n
    1 到 n 求和
    python-loops 15m
  3. 03.03
    FizzBuzz
    FizzBuzz
    python-loops python-conditionals 20m
  4. 03.04
    Find the Max
    找最大值
    python-loops 15m
  5. 03.05
    Homework: Collatz Steps
    作业: Collatz 步数
    python-loops python-conditionals 30m