Sources
Every lesson is checked against the official Python documentation, and every example is run with Python 3.14 so its output and error messages match. Ideas from outside Python, such as class diagrams or a named principle, cite where they come from, and comparisons with other languages cite those languages' own documentation. These are the pages each lesson relies on.
The Python Tutorial
- A First Look at Classes Used in 3.2
- An Informal Introduction to Python, Lists Used in 1.9, 2.1
- An Informal Introduction to Python, Text Used in 1.1, 1.5
- Arbitrary Argument Lists Used in 2.5, 4.12
- break and continue Statements Used in 1.7
- Brief Tour of the Standard Library, Dates and Times Used in 2.7
- Class and Instance Variables Used in 3.3, 3.4
- Classes Used in 4.1, T.2
- Creating Virtual Environments Used in 2.9, C.1
- Data Structures, Dictionaries Used in 2.2, 2.4
- Data Structures, More on Lists Used in 1.9, 2.1
- Data Structures, Sets Used in 2.3
- Default Argument Values Used in 1.8, 2.5, 4.12
- Defining Clean-up Actions Used in 2.6
- Defining Functions Used in 1.8
- Errors and Exceptions Used in 2.6
- Errors and Exceptions, Syntax Errors Used in 1.1
- Executing modules as scripts Used in 2.7, 2.P
- First Steps Towards Programming Used in 1.3
- Floating-Point Arithmetic: Issues and Limitations Used in 1.4
- Function Annotations Used in 2.11
- Generator Expressions Used in C.8
- Generators Used in 4.16, C.8
- Handling Exceptions Used in 2.6, 2.10, 2.P, 4.8, C.7
- Inheritance Used in 4.1, 4.5, 4.6, 4.9, 4.15
- Input and Output, Formatted String Literals Used in 1.2, 1.P
- Instance Objects Used in 3.3
- Invoking the Interpreter Used in 2.9
- Keyword Arguments Used in 1.8, 2.5
- Lambda Expressions Used in 2.5
- List Comprehensions Used in 2.4, C.5
- Looping Techniques Used in 2.2
- Managing Packages with pip Used in 2.9
- Methods of File Objects Used in 2.8
- Modules Used in 2.7, 4.16
- More Control Flow Tools, for Statements Used in 1.7, 2.1
- More Control Flow Tools, if Statements Used in 1.6
- Multiple Inheritance Used in 4.7, 4.15
- Odds and Ends Used in 4.9
- Packages Used in C.1
- pass Statements Used in 4.1
- Private Variables Used in 4.1, 4.2, 4.3
- Python Scopes and Namespaces Used in 2.5
- Raising Exceptions Used in 2.6, 2.10
- Random Remarks Used in 3.2
- Reading and Writing Files Used in 2.8
- Saving structured data with json Used in 2.8
- The del statement Used in 2.1
- The Python Tutorial For the whole course
- The range() Function Used in 1.7
- Tuples and Sequences Used in 1.9
- Unpacking Argument Lists Used in 3.P, 4.12
- User-defined Exceptions Used in 4.6, 4.8, 4.P, C.4
- Using Python as a Calculator, Numbers Used in 1.4
The Python Language Reference
- __slots__ Used in 4.4
- Assignment statements Used in 1.3
- Augmented assignment statements Used in 1.3
- Basic customization Used in 3.5
- Class definitions Used in 3.2
- Conditional expressions Used in 4.15
- Displays for lists, sets and dictionaries Used in 2.4
- Emulating container types Used in 4.11, C.5
- Emulating numeric types Used in 4.11
- Function definitions Used in 1.8, 4.12
- Generator expressions Used in 2.4
- Identity comparisons Used in 3.1
- Indentation Used in 1.6
- Lexical analysis, Comments Used in 1.2
- Lexical analysis, Escape sequences Used in 1.2
- Names (identifiers and keywords) Used in 1.3
- object.__eq__ Used in 4.6
- object.__hash__ Used in 3.5, C.3
- object.__init__ Used in 3.2, 4.5
- object.__lt__ Used in 3.5
- object.__radd__ Used in 4.11
- object.__repr__ Used in 3.5
- Objects, values and types Used in 3.1, 3.3
- Private name mangling Used in 4.2
- The assert statement Used in 2.10, C.9
- The for statement Used in 1.7
- The if statement Used in 1.6
- The nonlocal statement Used in F.2
- The Python Language Reference For the whole course
- The return statement Used in 1.8
- The try statement Used in 2.6, 4.8
- The while statement Used in 1.7
- The yield statement Used in 4.16
- type.__mro__ Used in 4.7
The Python Standard Library
- __main__ Used in C.1
- abc Used in 4.1, 4.P, C.2
- abc: Abstract Base Classes Used in 4.13
- abc: abstractmethod Used in 4.13
- asyncio Used in F.5
- asyncio: Coroutines and Tasks Used in F.5
- Built-in Constants: None Used in 1.8
- Built-in Constants: NotImplemented Used in 4.11
- Built-in Exceptions For the whole course
- Built-in Exceptions: AssertionError Used in 2.10
- Built-in Exceptions: AttributeError Used in 3.3, 4.10
- Built-in Exceptions: BaseException.args Used in 4.8
- Built-in Exceptions: Exception Used in 4.6
- Built-in Exceptions: Exception hierarchy Used in 2.6, 4.8, C.7
- Built-in Exceptions: FileNotFoundError Used in 2.8
- Built-in Exceptions: IndentationError Used in 1.6
- Built-in Exceptions: IndexError Used in 1.9
- Built-in Exceptions: KeyError Used in 2.2
- Built-in Exceptions: ModuleNotFoundError Used in 2.7, 2.9
- Built-in Exceptions: NameError Used in 1.3
- Built-in Exceptions: TypeError Used in 1.4
- Built-in Exceptions: ValueError Used in 1.5, 4.3, 4.4
- Built-in Functions For the whole course
- Built-in Functions: classmethod Used in 3.4, 4.16
- Built-in Functions: dir Used in 3.1
- Built-in Functions: hasattr Used in 4.10
- Built-in Functions: id Used in 3.1
- Built-in Functions: input() Used in 1.5, C.7
- Built-in Functions: int() Used in 1.5
- Built-in Functions: isinstance Used in 4.5, 4.9
- Built-in Functions: issubclass Used in 4.5
- Built-in Functions: iter Used in 4.11
- Built-in Functions: len() Used in 1.5
- Built-in Functions: next Used in 4.16
- Built-in Functions: object Used in 4.5
- Built-in Functions: open Used in 2.8
- Built-in Functions: print() Used in 1.1, 1.2
- Built-in Functions: property Used in 4.3
- Built-in Functions: reversed Used in C.8
- Built-in Functions: round() Used in 1.4
- Built-in Functions: sorted Used in 2.1, 2.5, C.5
- Built-in Functions: staticmethod Used in 3.4
- Built-in Functions: sum Used in 2.4, 4.11
- Built-in Functions: super Used in 4.5, 4.6, 4.7
- Built-in Functions: type() Used in 1.3, 3.1
- Built-in Functions: vars Used in 3.2, 4.2
- Built-in Types For the whole course
- Built-in Types: Boolean Operations (and, or, not) Used in 1.6
- Built-in Types: Common Sequence Operations Used in 1.9, 2.1
- Built-in Types: Comparisons Used in 1.6
- Built-in Types: dict.get Used in 2.2
- Built-in Types: dict.items Used in 2.2
- Built-in Types: Generic Alias Type Used in 2.11
- Built-in Types: list.sort Used in 2.1
- Built-in Types: Lists Used in 1.9
- Built-in Types: Mapping Types, dict Used in 2.2, 2.3
- Built-in Types: Mutable Sequence Types Used in 3.3
- Built-in Types: Numeric Types (int, float, complex) Used in 1.4
- Built-in Types: Ranges Used in 1.7
- Built-in Types: Sequence Types, list, tuple, range Used in 2.3
- Built-in Types: Set Types, set and frozenset Used in 2.3
- Built-in Types: str.isdigit Used in 2.P
- Built-in Types: str.join Used in 3.P
- Built-in Types: str.partition Used in 2.P
- Built-in Types: String Methods Used in 1.5
- Built-in Types: Text Sequence Type (str) Used in 1.5
- Built-in Types: Truth Value Testing Used in 1.6
- Built-in Types: Tuples Used in 1.9, 4.P
- Built-in Types: Union Type Used in 2.11
- collections.abc: Abstract Base Classes for Containers Used in 4.13
- collections.abc.Iterable Used in C.8
- collections.Counter Used in C.8
- csv: DictReader Used in 2.8, 2.P, 3.4
- dataclasses Used in 3.6, 4.15, C.2, T.4, F.2, F.3
- dataclasses: asdict Used in 3.P, C.6
- dataclasses: Class variables Used in C.2
- dataclasses: field Used in 3.6
- dataclasses: Frozen instances Used in 4.4, 4.P, C.3
- dataclasses: FrozenInstanceError Used in C.3
- dataclasses: Inheritance Used in C.2
- dataclasses: Mutable default values Used in 3.6, F.4
- dataclasses: Post-init processing Used in C.2, F.4
- dataclasses: the dataclass decorator and its parameters Used in 3.6, 3.P
- dataclasses.replace Used in 4.4, C.4
- datetime: date objects Used in 2.7
- datetime: date.isoformat() and date.fromisoformat() Used in C.6
- datetime: timedelta objects Used in 2.7
- datetime.date Used in C.4
- datetime.timedelta Used in 4.P, C.4
- Ellipsis Used in 4.13
- Format Specification Mini-Language Used in 1.P
- Format Specification Mini-Language Used in 3.P
- functools.singledispatch Used in 4.12
- json Used in C.6
- json: dump and load Used in 2.8, 2.P, 3.P
- math: ceil Used in 2.7
- pathlib Used in C.6
- random: choice Used in 2.7
- tkinter Used in T.1, T.3, T.6
- tkinter: A Hello World Program Used in T.1
- tkinter: Bindings and Events Used in T.2, T.6
- tkinter: Coupling widget variables Used in T.5
- tkinter: The Packer Used in T.3
- tkinter.messagebox Used in T.6
- tkinter.ttk Used in T.1, T.2, T.3, T.P
- tkinter.ttk: Notebook Used in T.P
- tkinter.ttk: Treeview Used in T.5
- typing: Protocol Used in 4.14, C.4
- typing: runtime_checkable Used in 4.14
- typing: Support for type hints Used in 2.11
- unittest: Basic example Used in 2.10
- venv: How venvs work Used in 2.9
Python Enhancement Proposals (PEPs)
Other Python documentation
Python Packaging User Guide
Unified Modeling Language (UML)
- OMG Unified Modeling Language (UML) 2.5.1 Used in 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 4.10, 4.11, 4.12, 4.13, 4.14, 4.15, 4.16, 4.P, C.1
Java, for comparison
- Java API: Comparable Used in 3.5
- Java API: Iterator Used in 4.16
- Java API: Object Used in 3.5
- The Java Language Specification: 4.3 Reference Types and Values Used in 3.1
- The Java Language Specification: 8.4.9 Overloading Used in 4.12
- The Java Language Specification: 8.10 Record Classes Used in 3.6
- The Java Language Specification: 12.6 Finalization of Class Instances Used in 3.1
- The Java Language Specification: 15.18 Additive Operators Used in 4.11
- The Java Language Specification: Chapter 4, Types, Values, and Variables Used in 1.3, 2.11
- The Java Tutorials: A Strategy for Defining Immutable Objects Used in 4.4
- The Java Tutorials: Abstract Methods and Classes Used in 4.13
- The Java Tutorials: Classes Used in 3.2
- The Java Tutorials: Controlling Access to Members of a Class Used in 4.1, 4.2
- The Java Tutorials: Creating Exception Classes Used in 4.6
- The Java Tutorials: Declaring Member Variables Used in 4.3
- The Java Tutorials: Default Methods Used in 4.7
- The Java Tutorials: Defining an Interface Used in 4.10, 4.14
- The Java Tutorials: Inheritance Used in 4.1, 4.5, 4.15
- The Java Tutorials: Multiple Inheritance of State, Implementation, and Type Used in 4.7
- The Java Tutorials: Objects Used in 3.3
- The Java Tutorials: Overriding and Hiding Methods Used in 4.6
- The Java Tutorials: Passing Information to a Method or a Constructor Used in 4.12
- The Java Tutorials: Polymorphism Used in 4.9
- The Java Tutorials: Specifying the Exceptions Thrown by a Method Used in 4.8
- The Java Tutorials: The catch Blocks Used in 4.8
- The Java Tutorials: Understanding Class Members Used in 3.4
- The Java Tutorials: Using the Keyword super Used in 4.5
- The Java Tutorials: Using the this Keyword Used in 3.2
- The Java Tutorials: Writing Final Classes and Methods Used in 4.6