Python Index
Use this index to find the lesson that teaches a Python concept or workflow. Search terms include canonical names, common aliases, and beginner descriptions. For definitions, see the Python glossary.
Environment, editor, and accessibility
| Topic and learner search terms | Lesson |
|---|---|
Install Python 3; interpreter; PATH; py -3; python3; version check | Unit 0: Python installation |
Install and use uv; uv init; uv add; uv run; uv sync; uv tree; project dependencies | Unit 0: Managed Python environment |
Virtual environment; .venv; isolated packages; dependency management; avoid global pip | Unit 0: Environments |
| Visual Studio Code; Theia IDE; workspace; extensions; editor setup | Unit 0: Editor setup |
| Terminal; integrated terminal; create a project folder; run a script; REPL | Unit 0: Workspace and terminal |
| NVDA; JAWS; VoiceOver; screen reader; braille; indentation; keyboard navigation | Unit 0: Screen-reader configuration |
| Accessible editor; spoken punctuation; line and indentation feedback; accessibility tools | Unit 0: Accessibility strategies |
Computer science, syntax, and numeric programs
| Topic and learner search terms | Lesson |
|---|---|
| Computer science; hardware versus software; algorithms; problem solving | Unit 1: Computer science foundations |
| Software development process; requirements; design; implementation; testing; iteration | Unit 2: Development process |
First program; Hello World; print(); output; comments | Unit 1: First Python program |
| Variables; assignment; identifiers; naming; statements; expressions | Unit 1: Variables |
Built-in types; int; float; str; bool; None; type inspection | Unit 1: Data types |
| Arithmetic; operators; precedence; modulo; exponentiation; floor division | Unit 2: Expressions and numeric operations |
User input; input(); standard input; prompts; convert input text | Unit 2: Input and output |
| F-strings; formatted output; interpolation; formatting numeric values | Unit 2: Formatted output |
Type conversion; int(); float(); str(); conversion errors | Unit 2: Type conversions |
math module; sqrt(); ceil(); floor(); constants; importing modules | Unit 2: Math library |
Decisions, iteration, strings, and collections
| Topic and learner search terms | Lesson |
|---|---|
Comparisons; Boolean expressions; and; or; not; truth values | Unit 3: Boolean expressions |
if; elif; else; nested conditions; branching | Unit 3: Conditional statements |
| Lists; list literals; indexes; zero-based indexing; slicing; mutation | Unit 3: List introduction |
for; range(); iteration; iterable; loop variable | Unit 3: For loops |
String methods; strip(); lower(); upper(); split(); join() | Unit 3: String operations |
List methods; append(); extend(); insert(); remove(); pop() | Unit 4: List operations |
Sorting; sort(); sorted(); reverse(); organizing a list | Unit 4: Organizing lists |
| Tuples; immutability; unpacking; one-item tuple | Unit 4: Tuples |
Dictionaries; key-value pairs; lookup; keys; values; items(); iteration | Unit 4: Dictionaries |
Repeated prompts; input validation; while; sentinel-controlled loop | Unit 5: Input and while loops |
Infinite loop; loop condition; flag variable; break; continue | Unit 5: Loop control |
Functions and object-oriented programming
| Topic and learner search terms | Lesson |
|---|---|
def; function definition; function call; reusable code; decomposition | Unit 6: Defining functions |
| Parameters; arguments; positional arguments; keyword arguments | Unit 6: Passing arguments |
Default parameter; optional argument; *args; **kwargs | Unit 6: Flexible arguments |
return; return value; local variable; scope; function result | Unit 6: Return values |
| Functions with lists and dictionaries; mutable arguments; reusable operations | Unit 6: Functions and collections |
Class; object; instance; attribute; method; self | Unit 7: Classes and objects |
__init__(); initialization; instance attributes; constructors | Unit 7: Creating a class |
Inheritance; child class; parent class; super(); method reuse | Unit 7: Inheritance |
| Composition; has-a relationship; object as an attribute | Unit 7: Composition |
Files, errors, testing, data, and projects
| Topic and learner search terms | Lesson |
|---|---|
File input; open(); read mode; read(); readline(); readlines() | Unit 8: Reading files |
File output; write mode; append mode; write(); encoding; UTF-8 | Unit 8: Writing files |
with; context manager; close a file; resource cleanup | Unit 8: Safe file handling |
Exceptions; try; except; else; finally; raise | Unit 8: Exception handling |
ValueError; TypeError; KeyError; IndexError; FileNotFoundError | Unit 8: Common exceptions |
JSON; json; json.load(); json.dump(); serialization; persistent data | Unit 8: JSON storage |
Unit testing; unittest; test case; setUp(); assertions; test a class | Unit 9: Testing |
Random numbers; random; random integer; random choice | Unit 9: Random data |
| Text analysis; word frequency; CSV; structured data; parsing | Unit 9: Data analysis |
| Requirements; top-down design; decomposition; accessible input/output | Unit 10: Project design |
| Text adventure; rooms; movement; inventory; puzzles; command-line tool; to-do list | Unit 10: Projects |
| Personal data manager; NiceGUI; data model; persistence; capstone; Git; version control | Unit 11: Capstone |