Python programs operate on objects with explicit input, ownership and failure contracts.
Learning roadmap
This section contains 12 written lessons or quiz banks. Programs are verified on CPython 3.14.6. Standard-library lessons target 3.11+ syntax; lessons using data, web, machine-learning or testing packages state their tested dependencies separately. Framework programs use local test clients, not a deployed service. Read the stated limits before adapting a fixture into an application.
Import ownership and distribution
Read the contract, run its program and inspect the failure case.
- Python package layout: owned imports and module entrypoints
- Python pyproject.toml: build a wheel and inspect its metadata
Resource data and executable archives
Read the contract, run its program and inspect the failure case.
- Python package resources: read data from a ZIP-backed package
- Python zipapp: build an executable archive without bundling an interpreter
Installed release artifacts and editable source connections
Read the contract, run its program and inspect the failure case.
- Python wheel installation: test the built artifact outside its source directory
- Python editable installation: source changes and metadata changes have different lifetimes
Built artifact inspection
Read the contract, run its program and inspect the failure case.
Artifact bytes and expectations
Read the contract, run its program and inspect the failure case.
Archive bytes and module origins
Read the contract, run its program and inspect the failure case.
- Python wheel RECORD: verify member bytes before trusting a local archive
- Python packaging: inspect an imported module origin before using it
Plugin discovery and version selection
Read the contract, run its program and inspect the failure case.
- Python entry points: inspect a trusted distribution before loading its plugin
- Python package versions: test a declared range against parsed versions
Continue learning
Move between tutorial, collections, advanced material and practice using the subject tabs. The sidebar changes with each section; related examples keep one canonical lesson URL.
