Skip to content

Fundamentals

Core Python language features the foundation for everything else in this repo.

Files

File Topic Key Concepts
data_types.py Data Types int, float, str, list, dict, set, tuple, type conversions
control_flow.py Control Flow if/elif/else, for/while loops, match/case, exceptions
functions.py Functions args/kwargs, closures, decorators, lambdas, first-class functions
oop.py Object-Oriented Programming Classes, inheritance, polymorphism, dunder methods, ABC
comprehensions.py Comprehensions List/dict/set comprehensions, generator expressions
context_managers.py Context Managers with statement, __enter__/__exit__, contextlib
async_await.py Async/Await asyncio, coroutines, event loop, tasks, gather
scope_and_namespaces.py Scope & Namespaces LEGB rule, global/nonlocal, module namespaces
typing_hints.py Type Hints Type annotations, generics, Protocol, TypeVar

Path

fundamentals/
├── async_await.py
├── comprehensions.py
├── context_managers.py
├── control_flow.py
├── data_types.py
├── functions.py
├── oop.py
├── scope_and_namespaces.py
└── typing_hints.py

Suggested Order

  1. data_types.py → 2. control_flow.py → 3. functions.py → 4. oop.py → 5. comprehensions.py → 6. scope_and_namespaces.py → 7. context_managers.py → 8. typing_hints.py → 9. async_await.py