A personal reference and playground for Python concepts I want to remember — from syntax basics to advanced patterns.
| Folder | Description |
|---|---|
| basics/ | Core language features: variables, loops, control flow |
| cli/ | Command line interface scripts |
| collections/ | Lists, Dictionaries, Sets, and Tuples |
| concurrency/ | Multithreading |
| functional/ | Lambdas, functions, exceptions, kwargs |
| io/ | Input/output operations |
| oop/ | Object-oriented principles — classes, inheritance |
| snippets/ | Miscellaneous utilities and small experiments |
| tests/ | Unit testing |
Each folder contains runnable examples and a notes.md file with short explanations, gotchas, and tips.
You can run examples using:
python3 module_name.pypython3 -m venv .venv
-
Activate python virtual environment:
source .venv/bin/activate
-
Leave python virtual environment:
deactivate
pip freeze > requirements.txtpip install -r requirements.txt
- A module is essentially a file in python
- A package is essentially a folder in python
- A package is a collection of modules