How trekhleb/learn-python works
This repository is a Python learning playground and cheatsheet, not a conventional runtime application. The learner chooses a documented topic, studies commented examples and assertions, then can modify examples and run them to check behavior. Topic directories organize the material; the README documents the learning and checking workflow. The graph groups related lesson files rather than treating each example as a production service. Source excerpts cover the module examples; other lesson coverage and workflow links are based on the README and tree.
Main entry points: modules Modules and packages · operators Operators · data_types Data types · control_flow Control flow
Components 16
Python foundations
- Getting started
src/getting_started
Core language
- Operators
src/operators - Data types
src/data_types - Control flow
src/control_flow - Errors and exceptions
src/exceptions - Generators and pass
src/additions
Modules and I/O
- Modules and packages
src/modules - Fibonacci module
src/modules/fibonacci_module.py - Sound effects
src/modules/sound_package/effects - Sound formats
src/modules/sound_package/formats - File handling
src/files - Terminal input
src/user_input
Standard libraries
- Standard library tour
src/standard_libraries
Other components
- Learner
Connections 20
- Learner → Getting started: studies
README.md - Learner → Operators: chooses topic
README.md - Learner → Data types: chooses topic
README.md - Learner → Control flow: chooses topic
README.md - Learner → Errors and exceptions: chooses topic
README.md - Learner → Functions: chooses topic
README.md - Learner → Classes: chooses topic
README.md - Learner → Modules and packages: chooses topic
README.md - Learner → File handling: chooses topic
README.md - Learner → Terminal input: chooses topic
README.md - Learner → Generators and pass: chooses topic
README.md - Learner → Standard library tour: chooses topic
README.md - Modules and packages → Fibonacci module: demonstrates module
README.md - Modules and packages → Sound effects: demonstrates packages
README.md - Modules and packages → Sound formats: demonstrates packages
README.md - Learner → Operators: runs examples
README.md - Learner → Data types: runs examples
README.md - Learner → Control flow: runs examples
README.md - Learner → Functions: runs examples
README.md - Learner → Classes: runs examples
README.md