1
Getting started 7 lessons Complete all lessons in Getting started.
What Is Python? Your First Program Run Python Scripts and the Interactive REPL Print and Expressions: Display Python Results Python Comments and Indentation Python Names and Assignment: Store Values Python Input and int(): Convert Text to Numbers Read Python Tracebacks and Find the Error 2
Numbers and arithmetic 7 lessons Complete all lessons in Numbers and arithmetic.
Python Integer Arithmetic: Add, Subtract and Multiply Python Float Arithmetic and Approximation
3
Text foundations 7 lessons Complete all lessons in Text foundations.
Python String Literals: Quotes and Escapes Python String Indexing and Slicing
4
Boolean logic and decisions 7 lessons Complete all lessons in Boolean logic and decisions.
Python Boolean Values and Comparisons Python Truthiness and bool()
5
Loops and iteration foundations 7 lessons Complete all lessons in Loops and iteration foundations.
Python For Loops over Sequences
6
Lists and mutable sequences 8 lessons Complete all lessons in Lists and mutable sequences.
Python List Creation and Indexing Python List append() and extend()
7
Tuples ranges and unpacking 6 lessons Complete all lessons in Tuples ranges and unpacking.
Python Tuple Packing and Singleton Tuples Python Tuple Unpacking and Swapping
Complete all lessons in Dictionaries.
Python Dictionary Creation and Keys Dictionary Access and Missing Keys
9
Sets and frozensets 7 lessons Complete all lessons in Sets and frozensets.
Python Set Construction and Unique Values Python Set Membership with in and not in
10
Functions and call contracts 9 lessons Complete all lessons in Functions and call contracts.
Define and Call Python Functions Return Values versus print()
11
Comprehensions and transformations 7 lessons Complete all lessons in Comprehensions and transformations.
Transform Lists with List Comprehensions Filter Items in Comprehensions
12
Exceptions and recovery 8 lessons Complete all lessons in Exceptions and recovery.
Python Exception Hierarchy Recover with Try and Except
13
Names namespaces and closures 8 lessons Complete all lessons in Names namespaces and closures.
Local and Global Names in Python Rebind Names with global and nonlocal
14
Modules and project organization 8 lessons Complete all lessons in Modules and project organization.
Import Modules and Names Explicitly Module Namespaces and Shared Bindings
15
Classes and instances 8 lessons Complete all lessons in Classes and instances.
Define Classes and Create Instances Store Independent Instance Attributes
16
Structural pattern matching 8 lessons Complete all lessons in Structural pattern matching.
Dispatch Values with match and case Capture Names and Use Wildcards
17
Inheritance and polymorphism 7 lessons Complete all lessons in Inheritance and polymorphism.
Override Behavior with Single Inheritance Extend Inherited Behavior with super()
18
Python data model and protocols 9 lessons Complete all lessons in Python data model and protocols.
Distinguish Object Identity, Type and Value Represent and Format Objects
19
Iterators and generators 8 lessons Complete all lessons in Iterators and generators.
Distinguish Iterables and Iterators Advance with iter and next
20
Functional tools 8 lessons Complete all lessons in Functional tools.
Separate Pure Functions from Effects Pass Functions and Lambda Expressions
21
Iterator toolkit 7 lessons Complete all lessons in Iterator toolkit.
Bound Count, Cycle and Repeat Combine and Batch Iterables
22
Collection toolkit 7 lessons Complete all lessons in Collection toolkit.
Manage Both Ends with deque Summarize Frequencies with Counter
23
Mathematical libraries 8 lessons Complete all lessons in Mathematical libraries.
Choose Mathematical Functions Compare Floating-Point Values with isclose
24
Unicode and text engineering 8 lessons Complete all lessons in Unicode and text engineering.
Distinguish Code Points from Grapheme Clusters Encode Text and Decode Bytes
25
Regular expressions 8 lessons Complete all lessons in Regular expressions.
Choose search, match or fullmatch Describe Classes and Quantifiers
26
Bytes and binary data 6 lessons Complete all lessons in Bytes and binary data.
Distinguish bytes and bytearray Share Binary Data with memoryview
27
Context managers and cleanup 6 lessons Complete all lessons in Context managers and cleanup.
Manage Resource Lifetime with with Implement Context Manager Methods
28
File and filesystem workflows 8 lessons Complete all lessons in File and filesystem workflows.
Choose Text and Binary File Modes Read and Write Files Incrementally
29
Serialization and structured data 8 lessons Complete all lessons in Serialization and structured data.
Round-Trip Data with JSON Represent Custom Values in JSON
30
Compression and archives 6 lessons Complete all lessons in Compression and archives.
Compress Data and Streams with gzip Compare Bzip2 and LZMA Interfaces
31
Time calendars and localization 8 lessons Complete all lessons in Time calendars and localization.
Calculate Dates with timedelta Distinguish Naive and Aware Datetimes
32
Command-line and automation 8 lessons Complete all lessons in Command-line and automation.
Parse Command-Line Arguments with argparse Route CLI Actions with Subcommands
33
Algorithm analysis and searching 8 lessons Complete all lessons in Algorithm analysis and searching.
State Input Contracts and Loop Invariants Analyze Time and Auxiliary Space Growth
34
Sorting and algorithmic strategies 7 lessons Complete all lessons in Sorting and algorithmic strategies.
Preserve Equal-Key Order with Stable Sorting Trace Insertion and Selection Sort
35
Linear structures and hashing 7 lessons Complete all lessons in Linear structures and hashing.
Implement Last-In First-Out Stacks Maintain FIFO Order with a Ring Buffer
36
Trees heaps and graphs 9 lessons Complete all lessons in Trees heaps and graphs.
Traverse Binary Trees in Defined Orders Maintain Binary Search Tree Ordering
37
Recursion and problem solving 6 lessons Complete all lessons in Recursion and problem solving.
Divide a Problem into Independent Subproblems Enumerate Candidates with Backtracking
38
Decorators and callable design 6 lessons Complete all lessons in Decorators and callable design.
Wrap Calls without Losing Results Preserve Metadata with wraps
39
Type annotations and static checking 8 lessons Complete all lessons in Type annotations and static checking.
Separate Type Annotations from Runtime Validation Represent Missing Values with Unions
40
Generics and advanced typing 11 lessons Complete all lessons in Generics and advanced typing.
Preserve Type Relationships with TypeVar Choose Bounds or Constraints
41
Dataclasses enums and domain models 7 lessons Complete all lessons in Dataclasses enums and domain models.
Generate Records with Dataclass Fields Create Independent Defaults with field
42
Descriptors and attribute resolution 7 lessons Complete all lessons in Descriptors and attribute resolution.
Implement Managed Attributes with Descriptors Predict Data and Non-Data Descriptor Precedence
43
Class creation and metaprogramming 7 lessons Complete all lessons in Class creation and metaprogramming.
Inspect Classes as First-Class Objects Build Dynamic Classes with type
44
Reflection and import internals 7 lessons Complete all lessons in Reflection and import internals.
Inspect Callable Signatures Inspect Annotations without Evaluating Strings
45
Testing fundamentals 7 lessons Complete all lessons in Testing fundamentals.
Test Behavior with Unit Tests and Assertions Isolate Test State with Fixtures and Cleanup
46
Networking and HTTP 8 lessons Complete all lessons in Networking and HTTP.
Split URLs and Validate Their Components Interpret HTTP Methods, Statuses and Headers
47
Database and persistence engineering 8 lessons Complete all lessons in Database and persistence engineering.
Open and Close SQLite Connections Bind SQL Values with Placeholders
48
Asyncio fundamentals 8 lessons Complete all lessons in Asyncio fundamentals.
Distinguish Coroutines from Awaitables Run a Bounded Async Program
49
Asynchronous systems 9 lessons Complete all lessons in Asynchronous systems.
Apply Backpressure with Async Queues Protect Shared State and Bound Resource Access
50
Threads and synchronization 8 lessons Complete all lessons in Threads and synchronization.
Start and Join Worker Threads Expose a Lost Update with a Controlled Race
51
Processes and parallelism 7 lessons Complete all lessons in Processes and parallelism.
Choose a Process Start Method Explicitly Dispatch Serializable Work to Process Pools
52
Professional software design 8 lessons Complete all lessons in Professional software design.
Separate Business Rules from Input and Output Inject Dependencies through Explicit Parameters
53
Advanced reliability testing 7 lessons Complete all lessons in Advanced reliability testing.
Verify Collaborating Components with Integration Tests Express Invariants as Property-Based Tests
54
Packaging and distribution 8 lessons Complete all lessons in Packaging and distribution.
Isolate Installations with Virtual Environments Declare Project Metadata in pyproject.toml
55
Defensive Python engineering 8 lessons Complete all lessons in Defensive Python engineering.
Validate Data at Trust Boundaries Parse Data Instead of Executing Dynamic Code
56
Debugging and observability 7 lessons Complete all lessons in Debugging and observability.
Trace Exceptions to Their Failing Frames Inspect Execution with Breakpoints and pdb
57
Performance and profiling 8 lessons Complete all lessons in Performance and profiling.
Design Repeatable Performance Measurements Compare Small Workloads with timeit
58
Source grammar and compilation 7 lessons Complete all lessons in Source grammar and compilation.
Distinguish Grammar from Execution
59
CPython execution and bytecode 7 lessons Complete all lessons in CPython execution and bytecode.
Trace Evaluation Stack Effects
60
CPython memory and object internals 8 lessons Complete all lessons in CPython memory and object internals.
Observe Reference Counts without Depending on Them Collect Unreachable Cycles
61
Native extension and implementation boundaries 8 lessons Complete all lessons in Native extension and implementation boundaries.
Distinguish Extension Modules from Embedding Track Owned and Borrowed C References 62
Language evolution and interoperability 7 lessons Complete all lessons in Language evolution and interoperability.
Read PEPs alongside the Language Reference Compare Pinned Release Compatibility
63
Standard library electives and specialization 7 lessons Complete all lessons in Standard library electives and specialization.
Keep GUI Event Loops Responsive Choose Terminal Interfaces by Capability
64
Python 3.14 migration 3 lessons Complete all lessons in Python 3.14 migration.
Inspect Template Strings before Rendering Control Deferred Annotation Evaluation
65
Python 3.15 migration 5 lessons Complete all lessons in Python 3.15 migration.
Trace Explicit Lazy Import Loading Compare frozendict and sentinel with Earlier Alternatives
66
Professional capstone and independent engineering 6 lessons Complete all lessons in Professional capstone and independent engineering.
Define a Measurable Project Contract Compose Domain Logic and Boundary Adapters