This page lists the conventions that the course’s readings, labs, assignments, and self-tests share.
Code¶
Python code, names, and values are in code font:
total = 0,print,None.A block of code is followed by a separate block that shows what it prints, when that matters:
print(7 / 2) print(7 // 2)3.5 3A line that starts with
>>>is typed at Python’s interactive interpreter, and the lines under it are what the interpreter prints. A line that starts with...continues the line above it.>>> 7 // 2 3Terminal commands are shown without a prompt. Where Windows and macOS or Linux need different commands, the page shows both, labeled.
“Python” means Python 3.12 or newer. The course’s code was checked on Python 3.12 and 3.15, and the readings name the version where a feature or a message differs.
Exercises and objectives¶
LO-3.2 is the second learning objective of Module 3. The syllabus lists them all.
Exercise 3.4 is the fourth exercise in Module 3’s practice page, and Exercise L3.4 is the fourth in Lab 3. Neither number ever changes once published.
Stars give an exercise’s difficulty: ★ applies one idea from the module, ★★ combines ideas or needs a plan, and ★★★ is a stretch.
Symbols¶
| Symbol | Meaning | LaTeX macro |
|---|---|---|
| The number of items in a collection, or of characters in a string | none | |
| Big-O notation: the time grows at most in proportion to , for large | \bigO{n} |
The macro is in latex/macros.tex, and the website defines the same one in myst.yml. The
Markdown pages write out in full, because GitHub’s math renderer doesn’t know the course’s
macros.