__init__ and Object Construction - Two-Phase Creation at Engineering Depth
Understand how Python actually constructs objects - the difference between __new__ and __init__, two-phase creation, mutable default argument traps, super().__init__() in inheritance chains, and factory patterns with classmethods.
__init_subclass__ - The Modern Alternative to Metaclasses
Master __init_subclass__ for subclass registration, definition-time validation, plugin registries, and keyword arguments in class statements - the Pythonic replacement for most metaclass use cases.
__set_name__ - The Descriptor Naming Protocol
Understand __set_name__, Python's descriptor self-naming protocol - how it eliminates name redundancy, how type.__new__ calls it, and how Django, Pydantic, and SQLAlchemy use it to build self-configuring field systems.
*args and **kwargs - Variable-Length Arguments in Python
Master Python's *args and **kwargs at engineering depth - how packing and unpacking work at the bytecode level, all 5 parameter types in order, forwarding patterns, decorator argument passing, and the anti-patterns that signal poor API design.
Abstract Base Classes - Enforcing Interfaces at Engineering Depth
Master Python's ABC system - abc.ABC, @abstractmethod, ABCMeta, virtual subclasses via register(), collections.abc built-in protocols, using ABCs in type hints, and the ABCs vs typing.Protocol trade-off.
Advanced Event Loop
Master event loop internals including selectors, callbacks, timers, custom policies, uvloop, run_in_executor, and signal handling for production async systems.
Advanced Generic Patterns
Master Self type, TypeVarTuple, recursive types, generic protocols, and generic type aliases for framework-level type-safe design including builder patterns and tensor shape typing.
Algorithmic Growth Visualizer
Build a growth visualizer to observe how algorithms scale with input size and develop deep intuition about performance and computational complexity.
API Versioning and Contracts
URL versioning, header versioning, contract testing with Pact, OpenAPI schema evolution, and backward compatibility strategies.
Assertions and Invariants - Encoding Correctness in Code
Learn how Python's assert statement works at runtime and under optimization, how to use assertions to document and enforce invariants, and when assertions are the right tool versus when they are the wrong one.
Async Context Managers
Master async resource management with __aenter__/__aexit__, asynccontextmanager, AsyncExitStack, and production patterns for connection pools and sessions.
Async Generators and Async Iterators
Build streaming data pipelines with async for, async yield, __aiter__/__anext__, async comprehensions, and finalization protocols for production async iteration.
Async Performance Patterns
asyncio internals, event loop tuning, connection pooling, backpressure, and high-throughput async patterns for production Python services.
Async Synchronization Patterns
Implement bounded concurrency, rate limiting, and circuit breakers with asyncio locks, semaphores, events, conditions, and barriers.
Async Web Scraper Pipeline
Build a rate-limited, fault-tolerant async scraper with backpressure.
Asyncio and Async/Await
Master Python's async/await model - coroutines, tasks, gather, event loop, async context managers, and building high-performance I/O-bound applications.
ATM Machine
Design a structured ATM simulation to apply computational thinking, state management, and flow control using Python fundamentals.
Authenticated API with RBAC
Build a FastAPI app with JWT auth, role-based access control, password hashing, and security headers.
Behavioral Patterns
Chain of Responsibility, Command, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor - behavioral patterns in idiomatic Python.
Big-O Notation - How Your Code Behaves at Scale
Build deep intuition for algorithmic complexity. Understand O(1), O(n), O(n²), O(log n), and O(2^n) through real Python examples, visualizations, and production engineering scenarios.
Binary Explorer
Build a structured binary exploration tool to understand bit representation, power-of-two logic, overflow behavior, and hardware-level thinking using Python fundamentals.
Binary Logic Playground
Build an interactive CLI playground to deeply understand binary representation, bitwise operators, masking, shifting, truth tables, and two’s complement in Python.
Binary, Bits, and Bytes - How Computers Store Everything
Deep engineering dive into binary representation, bits, bytes, two's complement, IEEE 754 floating point, text encoding, and Python's arbitrary-precision integers - with real code and AI/ML connections.
Bitwise Operators - The Systems Programmer's Toolkit
Master Python bitwise operators at engineering depth - binary representation, two's complement in arbitrary-precision integers, masking, bit flags, Unix permissions, XOR tricks, shift arithmetic, and real-world use in networking, cryptography, and the Python stdlib.
Boolean Algebra in Practice - Engineering Truth into Decision Systems
Master Boolean algebra in Python at engineering depth - AND, OR, NOT truth tables, De Morgan's Laws with formal proof, CNF and DNF canonical forms, condition simplification, XOR patterns, bitwise vs logical operators, and exhaustive testing of boolean functions.
Bottleneck Optimizer
Take a deliberately slow codebase and systematically optimize it using profiling.
break-continue-and-loop-else
Deeply understand Python break, continue, and loop-else semantics to design deterministic loops, early-exit systems, safe iteration models, and production-grade control flow.
Build a CLI Development Framework
Extensible CLI framework with metaprogramming-based command discovery, plugin architecture, and type-safe argument parsing.
Build a Production API Platform
Full FastAPI application with clean architecture, JWT auth, RBAC, async database, caching, and profiling.
Build a Scalable Data Pipeline
Async data ingestion and transformation with backpressure, structured concurrency, and throughput profiling.
Build a Trading Signal System
Real-time data processing with async streams, performance-critical computation, and a type-safe event system.
Build a Web Framework
Minimal ASGI framework with routing, middleware, dependency injection, and metaclass-based route registration.
Building an Async API Service
Apply asyncio in production - async FastAPI routes, background tasks, async database access, connection pools, and handling concurrency in a real API service.
Bytecode and the Compiler
How Python source becomes bytecode, the dis module, .pyc files, peephole optimisation, and writing a bytecode-level function.
Bytecode Inspection - Inside the code Object
Understand Python bytecode and the code object at engineering depth - all co_ attributes explained, how .pyc files work, reading bytecode with marshal, the line number table, closures in bytecode, and practical uses in debuggers and test frameworks.
C Extensions and FFI - When Python Isn't Fast Enough
Master ctypes, cffi, Cython, and pybind11 for calling C/C++ from Python - loading shared libraries, writing CPython extensions, and accelerating hot paths with compiled code.
Caching Strategies - Trading Memory for Speed
Master functools.lru_cache, functools.cache, TTL caches, memoization patterns, cache invalidation, cachetools, Redis caching, and cache stampede prevention.
Calling LLM APIs
Production patterns for calling LLM APIs - authentication, retry logic, rate limiting, error handling, async calls, and the Anthropic and OpenAI Python SDKs.
Capstone Overview
Five production-grade capstone projects that integrate metaprogramming, advanced typing, async patterns, performance engineering, architecture, and security.
Chess Move Validator
Design a rule-based chess move validator to strengthen logical thinking, coordinate reasoning, and structured conditional flow using Python fundamentals.
Classes and Objects - Python's Object Model at Engineering Depth
Understand Python classes and objects at the engineering level - class vs instance namespace, attribute resolution, type as metaclass, class body execution, and the shared mutable attribute trap.
Clean Architecture - Dependencies Point Inward
Implement Uncle Bob's Clean Architecture in Python with proper layering, the dependency rule, domain models, service layers, repositories, and framework boundaries.
Clean Code and Engineering Standards - Module Overview
Why code quality is an engineering concern, not an aesthetic one - covering the mindset shift from code that runs to code that lasts.
CLI Design Principles - Building Command-Line Tools Engineers Love
Design and build professional Python command-line interfaces with argparse and Click - with proper help text, exit codes, stdin/stdout conventions, and composable commands.
CLI Unit Convertor
Build a robust command-line unit converter that teaches parsing, structured data modeling, validation, floating-point precision handling, and defensive input engineering.
Closures - Functions That Remember Their Environment
Master Python closures at engineering depth - how inner functions capture free variables in cell objects, the classic loop-variable bug, nonlocal, function factories, closures as lightweight classes, and real-world patterns like memoization and event handler factories.
Closures Deep Dive - Free Variables, Cell Objects, and nonlocal
Master Python closures at CPython depth - free variables, cell objects, __closure__, co_freevars, the UnboundLocalError trap, the nonlocal keyword, late binding, factory functions, memoization, and when to use a closure vs a class.
Code Coverage - Measuring What You Test (and What You Miss)
Master code coverage at engineering depth - line vs branch vs condition coverage, coverage.py internals with sys.settrace, pytest-cov, .coveragerc configuration, pragma no cover, coverage in CI, and mutation testing with mutmut to find tests that pass but don't catch bugs.
Code Smells - Recognizing and Eliminating Bad Patterns
Learn to identify the 15 most common code smells in Python code - the warning signs that indicate deeper design problems - and the refactoring that fixes each one.
Comments vs Docstrings - Documentation as Executable Metadata
Master Python comments and docstrings at engineering depth - PEP 8 and PEP 257 conventions, Google/NumPy/Sphinx formats, the __doc__ attribute, inspect module introspection, type hints vs docstrings, documentation generation with Sphinx, and the pitfalls that make documentation worse than useless.
Common Error Anti-Patterns - Mistakes That Fail Silently in Production
Master the 10 most dangerous Python error-handling anti-patterns - swallowed exceptions, broad catches, lost context, resource leaks, mutable defaults, and more. Each anti-pattern shown with bad code, root cause, and the correct fix.
Compilation vs Interpretation - How Python Actually Runs Your Code
Understand Python's hybrid execution model - source code, bytecode, the Python Virtual Machine, CPython internals, JIT compilation, and why this architecture matters for performance and system design.
Composition vs Inheritance - When to Use Each at Engineering Depth
Master the is-a vs has-a distinction, understand why "favour composition over inheritance" exists, implement the delegation pattern, use mixins, refactor inheritance to composition, and apply dependency injection with typing.Protocol for structural typing.
Computational Thinking - Module Overview
Master computational thinking before mastering Python. This module teaches how computers reason, how memory works, how programs execute, and how to think algorithmically - the engineering foundation that makes everything else possible.
Computational Thinking Projects
Develop structured problem-solving skills by applying computational thinking principles before writing full Python programs.
Concurrency Module Projects
Two production-style concurrency engineering projects - a concurrent web scraper and an async API system.
Configuration Management - Environment-Driven Apps
Externalize and validate application configuration with python-dotenv, pydantic-settings, secrets management, multi-environment configs, and the 12-factor config principle.
Context Managers - The with Statement and Resource Management
Master Python context managers at engineering depth - understand __enter__ and __exit__ protocols, write your own context managers with classes and @contextmanager, and use contextlib tools for real-world resource management.
Control Flow Anti-Patterns - What Not to Do and Why
Master Python control flow anti-patterns - the arrow of doom, flag variables, exceptions for flow control, condition duplication, magic numbers, boolean parameter flags, redundant else, and more. Each with bad code, explanation, and clean refactored solution.
Counter and Defaultdict - Smart Dictionaries That Handle Edge Cases
Master collections.Counter and defaultdict at the engineering level - default factories, KeyError elimination, frequency counting with heapq, Counter arithmetic, multiset operations, and production patterns for grouping and aggregation.
cProfile and pstats - Function-Level Profiling
Master deterministic profiling with cProfile and pstats - reading profile output, sorting and filtering results, snakeviz visualization, profiling overhead, and real-world endpoint profiling.
CPython Architecture
The CPython source tree, the main evaluation loop, and how Python executes a .py file from disk to output.
CPython Architecture - The Interpreter at Engineering Depth
Understand CPython's architecture at engineering depth - the execution pipeline, the eval loop, PyObject memory layout, integer caching, string interning, the small object allocator, and alternative Python implementations.
CPython in Python 3.13
Free-threaded Python, the specialising adaptive interpreter, immortal objects, sub-interpreters, and what changed in the 3.10–3.13 internals.
Creational Patterns
Singleton, Factory Method, Abstract Factory, Builder, and Prototype - implemented idiomatically in Python for production systems.
Cryptographic Hashing
Master data hashing vs password hashing - hashlib, bcrypt, argon2, salting, timing attacks, constant-time comparison, and why MD5/SHA1 are broken for passwords.
CSV Analytics Tool
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
CSV handling - reading and writing tabular data
Master Python's csv module at engineering depth - how csv.reader, csv.writer, csv.DictReader, and csv.DictWriter work, dialects and quoting modes, encoding issues with Excel BOM, sniffing unknown formats, streaming large files, and when to reach for pandas instead.
Custom Awaitables
Build awaitable objects with the __await__ protocol, understand how coroutines and Futures work under the hood, and create custom async primitives.
Custom Exceptions - Designing Your Exception Hierarchy
Learn to design domain-specific exception hierarchies in Python - from minimal custom exceptions to rich context-carrying error objects, exception chaining, mixin patterns, and real-world library design.
Custom ORM Core
Build a mini SQLAlchemy-style ORM using metaclasses, descriptors, and __set_name__ to map Python classes to database tables.
Custom Sorting with Key - Sorting Complex Objects
Deep engineering-level exploration of Python's key= parameter for sorting - lambda functions, operator module, attrgetter/itemgetter, cmp_to_key, multi-criteria sorting, None handling, and production-grade ranking system patterns.
Cython and Native Extensions
Static typing in Python with Cython - turning Python bottlenecks into C-speed code without leaving the Python ecosystem.
Data Structure Selection Strategy - Engineering the Right Choice
Master the engineering decision framework for choosing Python data structures - complexity budgets, operation-frequency analysis, real-world case studies, space-time tradeoffs, and anti-pattern recognition. The capstone lesson of the data structures module.
Data Types at the Hardware Level - What Python Hides From You
Understand how integers, floats, booleans, and characters are represented in hardware, how Python's type system differs from C, and how libraries like NumPy bridge the gap for performance.
Database Migrations with Alembic
Manage database schema changes safely using Alembic - auto-generated migrations, upgrade/downgrade, migration environments, and production deployment strategies.
Database Module Projects
Three production-style database engineering projects - a CRUD app with proper data layer, a transaction-safe service, and a full ORM-backed API.
Dataclasses - Code Generation, Immutability, and Production Patterns
Master Python's @dataclass decorator at engineering depth - what it generates, field() and default_factory, frozen=True for immutability, __post_init__ for validation, ClassVar vs InitVar, inheritance with dataclasses, ordering, and production patterns in FastAPI and config systems.
Debugging Strategies - Systematic Approaches to Finding Bugs
Master Python debugging at engineering depth - reading tracebacks, using pdb and breakpoint(), post-mortem debugging, the traceback module, profiling tools, and the systematic mental models that separate expert debuggers from beginners.
Decision Tree Validator
Build a structured decision-tree validation engine that detects unreachable branches, logical conflicts, missing defaults, and invalid rule paths using deterministic control flow design.
Decorators - Wrapping Callables at Engineering Depth
Master Python decorators at full engineering depth - functools.wraps, decorator factories with three-level nesting, class-based decorators, stacking order, production patterns (timing, retry, caching, rate limiting), and how FastAPI/Flask route decorators work under the hood.
Default Parameters and the Mutable Default Argument Trap
Master Python default parameter values - understand why mutable defaults are one of Python's most common bugs, how defaults are evaluated at definition time, and the correct None sentinel pattern used in production code.
Defensive Programming - Writing Code That Fails Gracefully
Learn defensive programming techniques for Python - guard clauses, fail-fast principles, input validation at boundaries, defensive copying, safe defaults, and patterns like null object and circuit breaker for production-grade resilience.
Defining Functions in Python - def, Bytecode, and First-Class Objects
Master Python function definition at engineering depth - how def compiles to bytecode, what a function object contains, why functions are first-class values, and how to pass and store them like any other object.
Dependency Injection - Decoupling Components
Master dependency injection in Python from manual constructor injection to DI containers and FastAPI Depends, with testing strategies and architectural trade-offs.
Deque and Collections - Specialized Data Structures for Performance
Master collections.deque, OrderedDict, namedtuple, ChainMap, and the full collections module at the engineering level - internal structure, O(1) guarantees, sliding window algorithms, and production patterns.
Descriptors - The Protocol That Powers Python's Object Model
Master the descriptor protocol - __get__, __set__, __delete__, data vs non-data descriptors, the complete attribute lookup algorithm, and how property, classmethod, staticmethod, and bound methods work under the hood.
Design Patterns in Python - Idiomatic Implementations for Production Code
Master the most important GoF design patterns in idiomatic Python - Singleton, Factory, Abstract Factory, Strategy, Observer, Decorator, Registry, and Builder. For each - GoF intent, Pythonic implementation, and real framework usage.
Designing Clean Function APIs - The Art of Good Interfaces
Master the principles of clean function API design - naming, parameter conventions, single responsibility, type consistency, testability, and the patterns that make Python code a joy to use and maintain.
Designing Decision Trees - Engineering Complex Branching Logic
Master decision tree design as an engineering discipline - loan approval flowcharts to Python code, decision tables, completeness checking, condition ordering, data-driven logic, and combinatorial testing strategies.
Dictionary Hashing Mechanism - How Python Dicts Work Internally
Master Python dictionary internals at the engineering level - CPython PyDictObject compact layout, open addressing with perturbation-based probing, hash computation, insertion-order guarantee, load factor and resizing, the hashability contract, hash randomization, and production patterns including dispatch tables, registry pattern, and memoization.
Digital Pet Simulator
Design a state-driven digital pet simulation to strengthen computational thinking, state transitions, and structured logic using Python fundamentals.
Directory Synchronisation
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Disassembly with dis - Reading CPython Bytecode
Master Python bytecode disassembly with the dis module at engineering depth - reading disassembly output, key opcodes explained, value stack evolution, comparing equivalent Python patterns at the instruction level, and practical performance insights.
Distributed Tracing
OpenTelemetry, Jaeger, trace context propagation, custom spans, baggage, and sampling strategies for Python microservices.
Docstrings and Documentation - Code That Explains Itself
Learn to write docstrings that actually help engineers - covering Google, NumPy, and Sphinx styles, when to document vs when to improve the code, and how to generate API docs automatically.
Domain-Driven Design
Entities, Value Objects, Aggregates, Repositories, Domain Events, and Bounded Contexts - DDD in Python.
Dunder Methods - Python's Protocol System at Engineering Depth
Master Python's dunder (double-underscore) method system - comparison protocols, arithmetic operators, container protocols, context managers, callable objects, and attribute access hooks. Learn how Python's syntax maps to method calls.
Dynamic Class Creation - Building Classes at Runtime
Master the type() three-argument form, the full class creation pipeline, code generation with exec and compile, namedtuple internals, __prepare__, and building DSLs that generate Python classes at runtime.
Encapsulation and Data Hiding - Properties, Name Mangling, and Descriptors
Master Python's encapsulation model - single vs double underscore conventions, name mangling mechanics, @property for controlled access, validation in setters, __slots__, and the descriptor protocol that powers @property, @classmethod, and @staticmethod internally.
Environment variables - configuring Python applications at runtime
Master environment variables at engineering depth - how OS-level key-value pairs are inherited by child processes, how to read and set them with os.environ, the 12-factor app pattern, python-dotenv for development, type coercion pitfalls, and production-grade configuration with Pydantic Settings.
Error Tracking
Sentry integration, custom error grouping, breadcrumbs, release tracking, and building production error workflows in Python.
Error-Logging CLI Tool
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Event-Driven Architecture
Message queues, pub/sub, event sourcing, CQRS, and saga patterns with Python, Kafka, and Redis Streams.
Everything Is an Object - The Core of Python's Runtime Model
A deep systems-level exploration of Python's object model, covering CPython internals, the PyObject struct, id/type/value trinity, first-class functions, metaclasses, attribute lookup chains, identity vs equality, and performance implications of Python's unified object system.
Exception Hierarchy - Python's Built-in Exception Tree
Master Python's complete built-in exception hierarchy - from BaseException at the root to StopIteration driving for loops, understand which exceptions to catch, when catching a parent catches all children, and how to pick the right exception to raise.
Exceptions Explained - Python's Error Handling Model
Understand Python exceptions at engineering depth - what an exception object is, how the call stack unwinds, exception chaining, the BaseException vs Exception split, and how to read production tracebacks from Django and FastAPI.
Execution Model in Practice - Source to Bytecode to PVM
How Python actually executes code - the complete 5-stage pipeline from source text through tokenization, AST, bytecode compilation, and the Python Virtual Machine. Covers stack frames, heap memory, .pyc files, import caching, LEGB scope, and the CPython GIL at engineering depth.
Expression Evaluator
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
FastAPI - Type-Driven APIs with Automatic Validation and Docs
Master FastAPI at engineering depth - ASGI foundations, Pydantic validation, dependency injection, middleware, response models, background tasks, testing, and router organisation for production APIs.
FastAPI in Depth
Dependency injection, lifespan events, background tasks, middleware, custom exception handlers, OpenAPI customisation, and production FastAPI patterns.
Fault-Tolerant Calculator
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
File Backup Utility
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
File Descriptors and I/O
File descriptors, the VFS layer, O_flags, select/poll/epoll, io module internals, and zero-copy techniques.
Flask - Building REST APIs the Right Way
Master Flask at engineering depth - application factory pattern, request context proxies, routing, Blueprints, error handlers, testing with test_client, configuration management, and the extension ecosystem for building production-grade REST APIs.
Flowcharts - Seeing Logic Before Writing It
Learn to design algorithms visually using flowcharts. Model control flow, decision branches, and system behavior before touching code - and translate diagrams directly into clean Python.
for Loops Internals - The Iterator Protocol and How Python Iteration Really Works
Master Python for-loop internals - the iterator protocol, __iter__ and __next__ dunders, range() lazy evaluation, enumerate(), zip(), custom iterators, generator functions, and iteration performance. Understand what actually happens when Python executes a for loop.
Formatting and Tooling - Automate Code Quality
Use Black, isort, flake8, mypy, and pre-commit hooks to enforce code quality automatically - so engineers focus on logic, not formatting debates.
FP Module Projects - Engineering Challenges
Three hands-on functional programming engineering projects for the Python Intermediate module. Build real systems using decorators, generators, closures, composition, and pure functions.
Frequency-Analyzer
Build a scalable frequency analysis engine using Counter, defaultdict, heap, and sliding window techniques to simulate real-world analytics systems.
Garbage Collection - Generational GC, Cycle Detection, and Memory Leak Diagnosis
Master CPython's cyclic garbage collector at engineering depth - generational collection, three generations, cycle detection algorithm, gc module API, __del__ and PEP 442, gc.freeze() for fork, gc.get_referrers() for leak diagnosis, and common memory leak patterns.
Generators and yield - Suspended Execution at Engineering Depth
Understand Python generators and yield at engineering depth - frame suspension, the generator state machine, send() and the coroutine protocol, yield from, throw() and close(), memory-efficient pipelines, and the foundation of async/await.
Generics and TypeVar
Master generic programming in Python with TypeVar, Generic base class, bound and constrained type variables, covariance vs contravariance vs invariance, and real-world patterns from FastAPI and SQLAlchemy.
gRPC with Python
Protocol Buffers, gRPC service definitions, streaming, interceptors, and when to use gRPC over REST.
Guard Clauses and Defensive Logic - Early Return, Fail Fast, and Flat Code
Master guard clauses and defensive programming in Python - early return pattern, fail-fast principle, precondition checks, input validation, and replacing deeply nested conditionals with flat, readable code. The pattern professional engineers use to eliminate arrow code.
Health Checks and Readiness
Liveness vs readiness probes, dependency health checks, health check libraries, SLOs, and building production-grade health endpoints in Python.
Heap and Priority Queue - Efficient Minimum Tracking
Deep engineering-level exploration of binary heaps, Python's heapq module, min-heap and max-heap patterns, priority queues, top-K algorithms, heap invariants, Dijkstra's algorithm pattern, and real-world scheduling and streaming applications.
Hexagonal Architecture
Ports and Adapters - structuring Python applications so business logic is independent of frameworks, databases, and external services.
Hexagonal Architecture (Ports and Adapters)
Implement Hexagonal Architecture in Python using Protocol-based ports, swappable adapters, and clear boundaries between application logic and external systems.
High-Performance Data Processor
Profile and optimize a data pipeline from 10x slower to baseline.
Higher-Order Functions - Functions as First-Class Citizens
Master Python higher-order functions at engineering depth - map, filter, reduce, functools.partial, lru_cache, function composition, and building your own pipelines. Learn when to use functional patterns and when to prefer comprehensions.
HTTP Deep Dive - What Actually Travels Over the Wire
Master HTTP/1.1 at the byte level - request/response wire format, method semantics, status code families, critical headers, connection pooling, the requests and httpx libraries, HTTP/2 multiplexing, and why every production client needs explicit timeouts.
Identity vs Equality - Object Semantics and Memory in CPython
Master the difference between Python's `is` (identity) and `==` (equality) operators at engineering depth. Covers __eq__ protocol, CPython integer cache, string interning, None/True/False singletons, NaN semantics, and production pitfalls.
Immutability Strategies - Tuples, Frozen Dataclasses, and Value Objects
Master Python's immutability toolkit at engineering depth - mutable vs immutable types, shallow vs deep immutability, namedtuple, frozen dataclasses, frozenset, MappingProxyType, and the replace/copy pattern for functional state updates. Covers DDD value objects and Redux-style state in Python.
Import Hooks and the Import System - Intercepting Module Loading
Master Python's import machinery - sys.meta_path finders, loaders, ModuleSpec, lazy imports, AST transformation on import, circular imports, and importlib.metadata for plugin discovery.
Indexing and Query Optimization
Understand database indexes from the ground up - B-tree internals, query planning, EXPLAIN ANALYZE, composite indexes, and when indexes hurt performance.
Inheritance - Single, Multiple, and Cooperative at Engineering Depth
Master Python inheritance at the engineering level - what inheritance actually does to namespaces, single and multiple inheritance, the MRO algorithm, cooperative super(), the fragile base class problem, isinstance/issubclass, and when inheritance is correct.
Input and Output - Engineering Python I/O from stdin to Format Specs
Master Python I/O at engineering depth - print() anatomy with sep/end/file/flush, stdout buffering, f-strings with the full format spec mini-language, sys.stdin EOF handling, pprint, and production pitfalls every engineer must know.
Input Validation and Sanitization
Use Pydantic validators as security boundaries - prevent SQL injection, XSS, path traversal, SSRF, and file upload attacks through structural input validation in FastAPI.
Installing Python Properly - pyenv, venv, PATH, and Reproducible Environments
The engineering guide to installing Python correctly - pyenv for version management, virtual environments for isolation, PATH mechanics, pip best practices, and making your environment fully reproducible. Goes far beyond "download and install."
Interactive Calculator CLI
Build a production-grade interactive calculator CLI that teaches input handling, parsing, type conversion, operator semantics, truthiness, and safe evaluation without using eval.
Interning and Object Caching - CPython Runtime Optimizations at Engineering Depth
Master CPython's object caching and interning mechanisms including the small integer cache (−5 to 256), string interning rules, sys.intern(), None/True/False singletons, tuple caching, reference counting with sys.getrefcount(), __slots__ memory optimization, and the zombie id pitfall.
Inventory-Management-Tool
Build a scalable inventory management system using dictionaries, sets, defaultdict, and Counter while applying engineering-level data structure decisions.
JAX and Functional ML
JAX jit, grad, vmap, pmap - functional transformations for high-performance ML, XLA compilation, and NumPy-compatible ML research.
JSON Handling - Serialization, Deserialization, and Edge Cases
Master JSON in Python at engineering depth - json.dumps/loads, custom encoders and decoders, non-serializable types, ensure_ascii, compact separators, and high-performance alternatives like orjson.
JSON Serialization - Production-Grade Encoding and Decoding
Master JSON serialization in Python at engineering depth - custom encoders, datetime/Decimal/UUID handling, orjson and msgspec for high-throughput APIs, NDJSON streaming, content negotiation, and why float precision silently destroys financial data.
JWT Authentication
Master stateless JWT authentication - token structure, signing algorithms, refresh token rotation, common pitfalls, and building production-grade FastAPI JWT middleware.
Keyword-Only and Positional-Only Parameters - Designing Explicit Python APIs
Master Python's * and / separators for keyword-only and positional-only parameters. Learn how these enforce calling conventions, protect API stability, and make function signatures communicate intent clearly.
Lambda Expressions - Anonymous Functions at Engineering Depth
Understand Python lambda expressions at engineering depth - anonymous function objects, compile-time vs call-time evaluation, the loop-closure trap, late binding, the default-argument fix, and when lambda is and is not appropriate.
line_profiler and memory_profiler - Line-Level Analysis
Line-by-line time and memory profiling with line_profiler, memory_profiler, tracemalloc, and pympler - finding the exact lines that are slow or leak memory.
Linting and Formatting - Ruff, Black, isort, and mypy
Master Python code quality tooling at engineering depth - Ruff's rule categories, Black's opinionated formatting, isort profiles, mypy static type checking, pyproject.toml configuration, and how to wire all tools into a coherent developer workflow.
List Comprehensions - Pythonic Iteration and Performance
Master Python list comprehensions at the engineering level - bytecode internals, timeit benchmarks, generator expressions, variable scoping, dict/set comprehensions, and production-ready data transformation patterns.
Locks, Semaphores, and Synchronization
Master Python synchronization primitives - Lock, RLock, Semaphore, Event, Condition, and Barrier - and when to use each to build correct concurrent systems.
Log Parser Tool
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Logging Basics - Structured Observability for Python Applications
Master Python's logging module at engineering depth - the logger hierarchy, handlers, formatters, propagation rules, structured JSON logging, and how to configure logging correctly for production FastAPI and Django applications.
Login Authentication Simulator
Build a state-driven authentication system using loops, guard clauses, decision trees, early exits, and deterministic control flow design.
map, filter, reduce - Lazy Iteration and the Pipeline Model
Understand Python's map, filter, and reduce at engineering depth - lazy iterators, pipeline composition, functools.reduce and left-fold semantics, performance trade-offs, and when to prefer list comprehensions.
Master Python Engineering
A structured, production-grade Python curriculum - from fundamentals to enterprise architecture. Built for engineers who want to understand how Python works, not just how to use it.
Math Utilities Library
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Math Utilities Library
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Matplotlib and Seaborn
Production-grade visualisation for ML - diagnostic plots, training curves, feature importance, distribution analysis, and publication-quality figures.
Memory Management Internals
CPython's memory allocator layers, the pymalloc arena system, reference counting, cyclic GC generations, and how memory is actually freed.
Memory Optimization - Fitting More in Less
Reduce Python memory usage with __slots__, weakref, array module, struct.pack, memory-mapped files, object pooling, and the flyweight pattern for processing millions of records.
Memory Profiling - tracemalloc, memory_profiler, objgraph, and pympler
Profile and debug Python memory usage at engineering depth - sys.getsizeof shallow vs deep size, tracemalloc snapshots and leak detection, memory_profiler line-by-line analysis, objgraph retention paths, pympler recursive sizing, and practical workflows for diagnosing real-world memory leaks.
Memory References and Aliasing - Python's Object Reference Model
Master Python's memory management at the engineering level - CPython reference counting (ob_refcnt), cyclic garbage collection, aliasing, weak references, del semantics, sys.getrefcount, memory leaks from closures and global caches, and real-world debugging strategies.
Metaclasses - The Class of Classes
Understand type as the metaclass of all classes, the full class creation pipeline, __new__, __init__, __call__ on metaclasses, __prepare__, metaclass inheritance and conflicts, and real-world usage in Django, SQLAlchemy, and ABC.
Metrics with Prometheus
Prometheus client library, counter/gauge/histogram/summary, FastAPI instrumentation, custom metrics, alerting rules, and Grafana dashboards.
Microservices vs Monolith - Making the Right Choice
Navigate the monolith-to-microservices spectrum with Python - bounded contexts, communication patterns, the modular monolith, and practical decision frameworks.
Middleware - Wrapping Every Request and Response
Master middleware at engineering depth - WSGI vs ASGI middleware, the onion model, request ID propagation, timing, structured logging, CORS, rate limiting with Redis, JWT authentication, and when to use middleware vs dependency injection.
Mini Rule Engine
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Mocking - Patch Where the Name Is Used, Not Where It Is Defined
Master Python mocking at engineering depth - the golden patching rule, Mock vs MagicMock, patch as decorator and context manager, autospec, side_effect, AsyncMock, pytest-mock, and the typo that silently passes your tests.
Modular Plugin System
Build an extensible CLI tool with plugin discovery, loading, and lifecycle management.
Module 01 - Design Patterns in Python Overview
GoF patterns, SOLID principles, DDD, and Hexagonal Architecture - enterprise design patterns implemented idiomatically in Python.
Module 01 - Metaprogramming Overview
Master the machinery that powers every serious Python framework - metaclasses, descriptors, __init_subclass__, __set_name__, dynamic class creation, and import hooks. Write code that writes code.
Module 01 - Object-Oriented Programming Overview
Master Python's object model at engineering depth - classes, instances, dunder methods, encapsulation, inheritance, MRO, composition, abstract base classes, dataclasses, SOLID principles, and production design patterns.
Module 01 - Python Performance Engineering Overview
Profiling, Cython, Numba, memory optimisation, async performance, and Python at scale - turning Python code from slow to production-fast.
Module 01 - Scientific Python Stack Overview
NumPy, Pandas, SciPy, Matplotlib, scikit-learn, PyTorch, and JAX - the complete Python stack for AI/ML engineering.
Module 02 - Core Python Syntax Overview
Master Python's core syntax at the engineering level - from installation and the REPL to the object model, type system, operators, and memory internals. The gateway module that separates programmers from engineers.
Module 02 - Functional Programming Overview
Master Python's functional programming model at engineering depth - lambdas, map/filter/reduce, generators, iterators, decorators, closures, pure functions, immutability, functools, and partial application and currying.
Module 02 - Microservices with Python Overview
FastAPI in depth, gRPC, event-driven architecture, service mesh patterns, and API contracts - building production Python microservices.
Module 02 - Python for LLM Engineering Overview
Python patterns for building production LLM applications - API integration, streaming, prompt engineering, token management, tool use, and vector search.
Module 02 - Python Observability Overview
Structured logging, metrics, distributed tracing, error tracking, and health checks - the three pillars of production observability in Python.
Module 02 - Systems Programming Overview
OS primitives, sockets, file descriptors, shared memory, IPC, and writing C extensions - the full systems programming toolkit for Python engineers.
Module 02: Advanced Type System - Complete Overview
Master Python's type system at production depth - generics, Protocol, TypeVar, ParamSpec, overload, runtime checking, and static analysis with mypy and pyright. The module that turns type hints from annotations into engineering infrastructure.
Module 03 - Advanced Async & Concurrency Overview
Go beyond asyncio basics into async generators, structured concurrency with TaskGroup, custom awaitables, async context managers, and production-grade async architectures.
Module 03 - Python Internals Overview
Understand CPython's implementation details at engineering depth - bytecode, the eval loop, the GIL, reference counting, garbage collection, memory profiling, sys/inspect, and the import system.
Module 04 - Performance Engineering Overview
Master Python performance from measurement to optimization - profiling strategy, caching, memory optimization, vectorization, and C extensions for building high-throughput systems.
Module 04 - Testing and Quality Overview
Build production-grade test suites at engineering depth - unittest, pytest, mocking, TDD, code coverage, linting, and pre-commit hooks that enforce quality at every commit.
Module 04 Projects - Testing and Quality
Overview of the two hands-on engineering projects for the Testing and Quality module - a full pytest suite for a banking system and a complete CI quality pipeline setup.
Module 05: Architecture & Systems Design - Complete Overview
Design production Python systems with clean architecture, hexagonal architecture, dependency injection, plugin systems, 12-factor methodology, and configuration management. The engineering patterns that separate scripts from systems.
Module 05: Functions and Modularity - Complete Overview
Master Python functions at engineering depth - from bytecode compilation and first-class objects to closures, recursion, higher-order functions, and clean API design. The most complete functions module on the web.
Module 06 - APIs and Web Basics
Master HTTP at the wire level, REST design principles, Flask, FastAPI, request/response lifecycle, middleware, JSON serialization, and Pydantic validation - the complete engineering foundation for building production web APIs in Python.
Module 06 - Error Handling and Defensive Engineering
Master Python error handling as a professional engineering discipline - exceptions, try/except/finally, custom exceptions, logging, debugging, and defensive programming patterns used in production systems.
Module 06 - Security Engineering
Master security engineering in Python - cryptographic hashing, JWT authentication, OAuth 2.0, input validation, SQL injection prevention, secrets management, and secure coding patterns that protect production systems from real-world attacks.
Module 06 Projects - Overview
Two production-focused projects for Module 06 - a fully tested Task Management REST API with FastAPI and SQLAlchemy, and a local deployment stack with Docker, Nginx, PostgreSQL, and Alembic migrations.
Module 07 - Databases Overview
Master database engineering in Python - SQL, SQLite, PostgreSQL, transactions, indexing, SQLAlchemy ORM, and migrations.
Module 07 - File Handling and OS Interaction Overview
Everything Python engineers need to master file I/O, the OS module, environment variables, pathlib, CSV/JSON handling, and serialization - the skills you use every single day in production.
Module 08 - Concurrency Overview
Master concurrency in Python - threading, multiprocessing, asyncio, event loops, race conditions, locks, and building production async systems.
Module 3 - Control Flow and Logic: The Engineering Backbone of Every Program
Master Python control flow at the engineering level - conditionals, boolean logic, short-circuit evaluation, guard clauses, loops, pattern matching, and decision tree design. Understand why control flow is architecture, not syntax.
MRO - Method Resolution Order and the C3 Linearisation Algorithm
Understand Python's Method Resolution Order at engineering depth - the diamond problem, C3 linearisation step by step, how super() traverses the MRO (not just "calls parent"), mixin patterns that depend on MRO, Django/Flask examples, and MRO failure cases.
Multiprocessing in Python
Bypass the GIL with multiprocessing - Process, Pool, shared memory, queues, pipes, and when to use processes instead of threads.
Mutable vs Immutable - Designing Reliable Data Structures
Master Python mutability at the engineering level - the object model (id, type, value), pass-by-object-reference, the mutable default argument anti-pattern, frozen dataclasses, += behavior differences, string concatenation performance, and designing reliable concurrent systems.
Naming Conventions - Writing Code That Reads Like English
Names are the primary documentation. Learn how to name variables, functions, classes, modules, and constants so that code communicates intent without comments.
Nested-Logic-Patterns
Master nested conditional logic, execution path complexity, decision tree modeling, guard-clause refactoring, and deterministic control flow design in Python.
None and Implicit Return - The Invisible Return Value
Master Python's None object and implicit return semantics - why every function returns something, what None really is at the CPython level, and how invisible returns cause real production bugs.
Numba JIT Compilation
LLVM-based JIT compilation for Python numerical code - GPU acceleration, parallel loops, and ufunc creation with @jit and @cuda.jit.
Number Pattern Analyzer
Design a structured number analysis system that reinforces state tracking, single-pass logic, pattern detection, and computational thinking.
NumPy Internals
NumPy memory layout, strides, broadcasting, vectorisation, and ufuncs - how NumPy achieves C-speed from Python.
OAuth 2.0 and OIDC
Implement OAuth 2.0 authorization code flow with PKCE, OpenID Connect ID tokens, Keycloak integration, and delegated authorization in FastAPI with authlib.
OOP Module Projects - Engineering Challenges
Four hands-on OOP engineering projects for the Python Intermediate module. Build real systems using classes, inheritance, ABCs, dunders, and composition.
Operators - Arithmetic, Comparison, and Logical at Engineering Depth
Master Python operators at systems depth - arithmetic via dunder methods, true vs floor division, short-circuit evaluation internals, walrus operator, augmented assignment on mutables, operator precedence traps, and overloading patterns.
ORM with SQLAlchemy
Master SQLAlchemy - the declarative ORM, session management, relationships, lazy vs eager loading, and building production data access layers.
OS Primitives in Python
Processes, signals, environment, users, time, and the os/signal/resource modules - Python's interface to the POSIX operating system.
Overload and Type Narrowing
Use @overload for multiple function signatures and TypeGuard, TypeIs, assert_never, and pattern matching for exhaustive type narrowing in Python.
Overview
Apply control flow, decision tree modeling, branching logic, loop design, and rule-based systems to build deterministic and scalable execution architectures.
Overview
Apply Python’s runtime semantics, object model, dynamic typing, operator behavior, and memory concepts through engineering-grade projects.
Overview
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Overview
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Packaging and Environments - Module Overview
Master Python packaging and environments at full engineering depth - virtual environments, pip and lockfiles, pyproject.toml, Poetry, semantic versioning, and publishing to PyPI for production-grade projects.
Packaging Projects - Overview
Overview of hands-on projects for Module 05 - Packaging and Environments. Build, test, version, and publish a real Python utility package from scratch.
Pandas for ML
Pandas for machine learning - efficient data loading, feature engineering, pipelines, memory optimisation, and common ML preprocessing patterns.
Parameters vs Arguments - Python's Pass-by-Object-Reference Model
Understand the semantic difference between parameters and arguments in Python, and master Python's pass-by-object-reference model - neither pass-by-value nor pass-by-reference, but something more precise and powerful.
ParamSpec and Concatenate
Solve the decorator typing problem with ParamSpec and Concatenate -- preserve callable signatures through wrappers, type retry/logging decorators, and apply patterns from FastAPI middleware.
Partial Application and Currying - functools.partial, operator, and Function Pipelines
Master partial application and currying at engineering depth - functools.partial internals, inspecting partial objects, the distinction between partial application and currying, implementing currying in Python, the operator module as curried-style operations, function composition with reduce, and real-world usage in Django ORM, sorted(), and data pipelines.
pathlib - Modern Path Manipulation in Python
Master pathlib at engineering depth - learn why Path objects replace os.path strings, how the / operator composes paths, all path attributes and methods, globbing for batch processing, and cross-platform path handling with PurePath.
Pattern based Access Controller
Build a scalable, declarative permission engine using pattern matching, multi-dimensional branching, deterministic rule evaluation, and structured control flow architecture.
Pattern-Driven-Condition-Design
Master pattern-driven condition design, decision modeling, declarative control flow, rule mapping, and scalable branching systems in Python.
PEP 8 - Python's Style Guide for Production Code
Master PEP 8 at engineering depth - not as a list of rules to memorize, but as a system of constraints that reduces cognitive load and enables collaboration at scale.
pip and requirements - Dependency Management in Practice
Master pip and requirements files at full engineering depth - dependency resolution, version specifiers, pip-tools lockfiles, layered requirements, hash verification, supply-chain security, and private package indexes for production workflows.
Plugin Framework
Build an auto-discovering plugin system using __init_subclass__, class registries, and import hooks.
Plugin Systems - Building Extensible Applications
Build extensible Python applications with entry_points, importlib.metadata, stevedore, __init_subclass__, and plugin lifecycle management.
Poetry - Dependency Management and Packaging Done Right
Master Poetry at engineering depth - lockfile mechanics, version constraints, dependency groups, virtualenv management, publishing, and CI integration for reproducible Python builds.
PostgreSQL with Python
Connect Python to PostgreSQL using psycopg2 and psycopg3 - connection pooling, parameterized queries, JSONB, arrays, and production connection management.
Pre-Commit Hooks - Automate Quality Gates Before Every Commit
Master the pre-commit framework at engineering depth - Git hook mechanics, .pre-commit-config.yaml structure, building production hook pipelines with ruff, black, mypy, detect-secrets, and pytest, CI integration, team adoption strategy, and hook performance tuning.
Primitive Data Types - int, float, bool, and NoneType at Engineering Depth
A complete engineering exploration of Python's four scalar types - int, float, bool, and NoneType. Covers arbitrary precision integers, CPython small-int cache, IEEE-754 float layout, NaN gotchas, bool as int subclass, None as singleton, immutability, type promotion, and Decimal for financial arithmetic.
Priority-Task-Scheduler
Build a scalable priority-based task scheduler using heapq, deque, and advanced data structure reasoning to simulate real-world job queue systems.
Production Async Architecture
Build production-grade async systems with error handling strategies, graceful shutdown, health checks, backpressure, async testing with pytest-asyncio, and structured logging.
Production FastAPI Application
Build a FastAPI app with clean architecture, dependency injection, and proper configuration management.
Production-Ready CLI Tool
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Profiling Python Applications
cProfile, line_profiler, py-spy, memory_profiler, and Austin - finding real bottlenecks before optimising anything.
Profiling Strategy - Measure Before You Optimize
Amdahl's law, the profiling workflow, identifying hotspots, benchmarking methodology with timeit, performance budgets, and the discipline of measuring before optimizing.
Project 01 - Banking System Simulator
Build a banking system using Python OOP. Covers inheritance, @property validation, @classmethod factory methods, __repr__, overdraft protection, and transaction history.
Project 01 - Bytecode Visualizer
Build a Python bytecode analysis tool using the ast module, dis.get_instructions(), and CPython's value stack model. Parse source to AST, disassemble to bytecode, simulate stack evolution, and compare two implementations side by side.
Project 01 - Custom Decorator Library
Build a production-quality Python decorator library with retry, rate limiting, timeout, argument validation, and structured call logging. Covers closures, functools.wraps, inspect.signature, and decorator composition.
Project 01 - Full Test Suite for a Banking System
Build a production-quality pytest test suite for the BankAccount and SavingsAccount system - fixtures, parametrized edge cases, mocked external dependencies, integration tests, Hypothesis property-based tests, and 90% branch coverage enforcement.
Project 01 - Publish an Internal Utility Package
Build, test, version, and publish pyutils-engineersofai - a typed Python utility library with src/ layout, hatchling build backend, full pytest coverage, CHANGELOG, and GitLab CI pipeline that publishes on v* tags.
Project 01 - Task Management REST API
Build a production-quality Task Management REST API with FastAPI, Pydantic v2, SQLAlchemy, pytest TestClient, RFC 7807 error responses, request ID middleware, and Docker - full CRUD, pagination, filtering, and OpenAPI docs.
Project 02 - CI Quality Pipeline Setup
Configure a complete Python quality pipeline from scratch - pre-commit hooks, pyproject.toml tool configuration, GitLab CI four-stage pipeline, tox/nox multi-version testing, Makefile targets, coverage gate, and JUnit test report artifacts.
Project 02 - Lazy Evaluation Pipeline
Build a lazy data processing pipeline in Python that handles datasets larger than RAM. Covers generators, generator chaining, lazy evaluation, immutable pipeline objects, and streaming architecture.
Project 02 - Library Management System
Build a library management system using Python OOP. Covers __repr__, __eq__, __hash__, Abstract Base Classes, checkout systems with date tracking, overdue detection, and fine calculation.
Project 02 - Local Deployment Setup
Configure a production-like local deployment stack for the Task Management API - multi-stage Dockerfile, Docker Compose with Nginx and PostgreSQL, Alembic migrations, Pydantic BaseSettings, health checks, graceful shutdown, and a Makefile for operations.
Project 02 - Mini Profiler Tool
Build a production-quality Python profiler using sys.setprofile(), tracemalloc, and call tree construction. Supports context manager and decorator usage, formatted report tables, run comparison, and JSON export for CI integration.
Project 03 - Chess Engine (OOP Version)
Build a working chess engine in Python using ABCs, dunders, dataclasses, and composition. Covers Piece ABC, concrete piece classes, Board with __getitem__/__setitem__, Move dataclass, check detection, and algebraic notation.
Project 03 - Functional Data Processor
Build a functional-style data transformation system in Python using function composition, pipe, partial, singledispatch, and the Result monad pattern. All functions are pure; error handling avoids exceptions.
Project Structure - Organizing Python Projects Like a Senior Engineer
Learn how to structure Python projects for maintainability - from scripts to packages to full applications - using src layout, pyproject.toml, and clear module boundaries.
Project: Async Data Aggregation API
Build an async FastAPI service that aggregates data from multiple external APIs concurrently - with caching, rate limiting, circuit breaking, and background refresh.
Project: Concurrent Web Scraper
Build a production-grade concurrent web scraper using ThreadPoolExecutor and asyncio - rate limiting, retry logic, robots.txt compliance, and structured output.
Project: Library Management System
Build a command-line library management system backed by SQLite - books, members, loans, with proper SQL, transactions, and a clean data access layer.
Project: Transaction-Safe Payment Service
Build a transaction-safe payment processing service with PostgreSQL - account transfers, idempotency, retry on deadlock, and audit logging.
Project: Type-Safe Event System
Build a fully typed publish-subscribe system using generics, Protocol, and ParamSpec with compile-time event type safety.
Project: Typed Configuration Library
Build a configuration library with runtime validation using type hints, generic containers, and boundary-based validation.
Projects Overview - Data Structures in Practice
Apply Python data structures to real-world engineering problems including inventory systems, frequency analysis, and priority scheduling systems.
Prompt Templates in Python
Building maintainable prompt systems in Python - template engines, versioning, testing prompts, few-shot construction, and prompt injection defense.
Protocol and Structural Subtyping
Master typing.Protocol for structural subtyping in Python -- define interfaces based on behavior, compose protocols, make duck typing type-safe, and apply patterns from Django and file-like objects.
Pseudocode - Design Before You Code
Learn to design algorithms using pseudocode before writing Python. Build structured thinking that prevents logic errors, guides clean implementation, and scales to complex real-world systems.
Publishing Packages - From Source to PyPI
Master Python package publishing at engineering depth - sdist vs wheel formats, build backends, TestPyPI workflow, twine and Poetry publishing, API tokens, private registries, and automated CI/CD release pipelines.
Pure Functions - Testability, Memoisation, and the Functional Core Pattern
Master pure functions at engineering depth - same inputs always produce same outputs with no side effects, referential transparency, how to identify and eliminate side effects, the functional core / imperative shell architecture, and why purity unlocks testability, caching, and thread safety.
pyproject.toml - The Modern Python Project Standard
Master pyproject.toml at full engineering depth - PEP 517/518/621 build system specification, build backends, the full project table, optional dependencies, entry points, tool configuration, src layout, dynamic versioning, and building distribution artifacts.
pytest - The Industry-Standard Test Framework
Master pytest at full engineering depth - assertion rewriting via AST transformation, fixtures with scope, conftest.py, parametrize, monkeypatch, capsys, built-in marks, essential plugins, and pyproject.toml configuration for production test suites.
Python __init__ Practice Problems & Exercises
Solve 11 Python __init__ and object construction — two-phase creation at engineering depth problems. Covers __init__ practice, object construction, __new__ v...
Python __init_subclass__ Practice Problems & Exercises
Solve 11 Python __init_subclass__ problems. Covers __init_subclass__ practice, subclass hook. Hints and solutions.
Python __set_name__ Practice Problems & Exercises
Solve 11 Python __set_name__ problems (3 Easy, 4 Medium, 4 Hard). Practice __set_name__ practice, descriptor naming with hints, runnable code, and solutions.
Python *args and **kwargs Practice Problems & Exercises
<PracticePageHeader
Python Abstract Base Classes — Enforcing: Practice Problems & Exercises
Solve 11 Python abstract base classes — enforcing interfaces at engineering depth problems. Covers abstract base, abc module, abstractmethod practice. Hints ...
Python Advanced Event Loop Practice Problems & Exercises
Solve 11 Python advanced event loop problems. Covers event loop, asyncio event, run_in_executor python. Hints and solutions.
Python Advanced Generic Patterns Practice Problems & Exercises
Solve 11 Python advanced generic patterns problems. Covers advanced generic, recursive generics, generic mixin. Hints and solutions.
Python Assertions and Invariants Practice Problems & Exercises
Solve 11 Python assertions and invariants problems. Covers assert practice, assertions exercises. Hints and solutions.
Python Async Context Managers Practice Problems & Exercises
Solve 11 Python async context managers problems. Covers async context, asynccontextmanager decorator. Hints and solutions.
Python Async Generators Practice Problems & Exercises
Solve 11 Python async generators and iterators problems. Covers async generators, async iterators, async for. Hints and solutions.
Python Async Synchronization Patterns: Practice Problems & Exercises
Solve 11 Python async synchronization patterns problems. Covers asyncio Lock, asyncio Semaphore, asyncio Event. Hints and solutions.
Python Asyncio and Async/Await Practice Problems & Exercises
Solve 11 Python asyncio and async/await problems. Covers asyncio practice, async await, asyncio gather. Hints and solutions.
Python at Scale
Multiprocessing, Ray, Dask, and distributed Python - moving beyond a single CPU core for data processing and model training.
Python Big-O Notation Practice Problems & Exercises
Solve 12 Python big-o notation problems. Covers big o, algorithm complexity, time complexity. Hints and solutions.
Python Binary, Bits, and Bytes Practice Problems & Exercises
Solve 12 Python binary, bits, and bytes problems. Covers binary practice, bitwise operators, two's complement. Hints and solutions.
Python Bitwise Operators Practice Problems & Exercises
Solve 12 Python bitwise operators problems. Covers bit manipulation, bit masking, XOR practice. Hints and solutions.
Python Boolean Algebra in Practice: Practice Problems & Exercises
Solve 10 Python boolean algebra in practice problems. Covers boolean algebra, de morgans, truth table. Hints and solutions.
Python break, continue, Practice Problems & Exercises
Solve 10 Python break, continue, and loop else problems. Covers break continue, loop else, early exit. Hints and solutions.
Python Build a CLI Development Framework: Practice Problems & Exercises
Solve 11 Python build a cli development framework problems. Covers cli framework, argparse design, plugin architecture. Hints and solutions.
Python Build a Production API Platform: Practice Problems & Exercises
Solve 11 Python build a production api platform problems. Covers production api, fastapi dependency, auth middleware. Hints and solutions.
Python Build a Scalable Data Pipeline: Practice Problems & Exercises
Solve 11 Python build a scalable data pipeline problems. Covers data pipeline, stream processing, pipeline design. Hints and solutions.
Python Build a Trading Signal System: Practice Problems & Exercises
Solve 11 Python build a trading signal system problems. Covers trading signal, financial data, signal computation. Hints and solutions.
Python Build a Web Framework Practice Problems & Exercises
Solve 11 Python build a web framework problems. Covers web framework, wsgi asgi, routing design, http request. Hints and solutions.
Python Building an Async API Service: Practice Problems & Exercises
Solve 11 Python building an async api service problems. Covers async api, fastapi async, async database. Hints and solutions.
Python Bytecode Inspection Practice Problems & Exercises
Solve 11 Python bytecode inspection problems. Covers code object, co_code practice, co_consts exercises. Hints and solutions.
Python C Extensions and FFI Practice Problems & Exercises
Solve 11 Python c extensions and ffi problems. Covers ctypes practice, cffi exercises, C extensions. Hints and solutions.
Python Caching Strategies Practice Problems & Exercises
Solve 11 Python caching strategies problems. Covers lru_cache practice, functools.cache python. Hints and solutions.
Python Classes Practice Problems & Exercises
Solve 11 Python classes and objects — python's object model at engineering depth problems. Covers classes and, class definition, object instantiation. Hints ...
Python Clean Architecture Practice Problems & Exercises
Solve 11 Python clean architecture problems (3 Easy, 4 Medium, 4 Hard). Practice dependency rule, domain model with hints, runnable code, and solutions.
Python CLI Design Principles Practice Problems & Exercises
Solve 11 Python cli design principles problems. Covers argparse practice, sys.argv exercises, CLI exit. Hints and solutions.
Python Closures Deep Dive Practice Problems & Exercises
Solve 11 Python closures deep dive problems (4 Easy, 4 Medium, 3 Hard). Practice closures deep with hints, runnable code, and solutions.
Python Closures Intro Practice Problems & Exercises
Solve 11 Python closures intro problems. Covers closures practice, free variables, late binding. Hints and solutions.
Python Code Coverage Practice Problems & Exercises
Solve 11 Python code coverage problems (4 Easy, 4 Medium, 3 Hard). Practice coverage.py exercises, branch coverage with hints, runnable code, and solutions.
Python Code Smells Practice Problems & Exercises
Solve 11 Python code smells problems. Covers refactoring exercises, long function, magic numbers. Hints and solutions.
Python Comments vs Docstrings Practice Problems & Exercises
Solve 10 Python comments vs docstrings problems. Covers docstrings practice, comments exercises. Hints and solutions.
Python Common Error Anti-Patterns: Practice Problems & Exercises
Solve 11 Python common error anti-patterns problems. Covers bare except, swallowing exceptions, pokemon exception. Hints and solutions.
Python Compilation Practice Problems & Exercises
Solve 12 Python compilation vs interpretation problems. Covers compilation practice, bytecode exercises, dis module. Hints and solutions.
Python Composition Practice Problems & Exercises
Solve 11 Python composition vs inheritance — when to use each at engineering depth problems. Covers composition vs, composition over, delegation pattern. Hin...
Python Configuration Management Practice Problems & Exercises
Solve 11 Python configuration management problems. Covers pydantic settings, environment variables. Hints and solutions.
Python Context Managers Practice Problems & Exercises
<PracticePageHeader
Python Control Flow Anti-Patterns: Practice Problems & Exercises
Solve 10 Python control flow anti-patterns problems. Covers anti-patterns practice, code smells, dead code. Hints and solutions.
Python Counter and Defaultdict Practice Problems & Exercises
Solve 11 Python counter and defaultdict problems. Covers counter practice, defaultdict exercises. Hints and solutions.
Python cProfile and pstats Practice Problems & Exercises
Solve 11 Python cprofile and pstats problems. Covers cProfile practice, pstats sorting, profiling decorator. Hints and solutions.
Python CPython Architecture Practice Problems & Exercises
Solve 11 Python cpython architecture problems. Covers eval loop, PyObject layout, integer caching. Hints and solutions.
Python Cryptographic Hashing Practice Problems & Exercises
Solve 11 Python cryptographic hashing problems. Covers hashlib sha256, hmac digest, salted hashing. Hints and solutions.
Python CSV Handling Practice Problems & Exercises
Solve 11 Python csv handling problems. Covers csv practice, csv.reader exercises, csv.writer practice. Hints and solutions.
Python Custom Awaitables Practice Problems & Exercises
Solve 11 Python custom awaitables problems. Covers __await__ protocol, coroutine internals, custom Future. Hints and solutions.
Python Custom Exceptions Practice Problems & Exercises
Solve 11 Python custom exceptions problems. Covers exception hierarchy, exception attributes, raise from. Hints and solutions.
Python Custom Sorting with Key Practice Problems & Exercises
Solve 11 Python custom sorting with key problems. Covers custom sorting, sort key, operator itemgetter. Hints and solutions.
Python Data Structure Selection Strategy: Practice Problems & Exercises
Solve 11 Python data structure selection strategy problems. Covers data structure, choose list, complexity budget. Hints and solutions.
Python Data Structures (Pythonic) - Module 4 Complete Overview
Master Python data structures at the engineering level - lists, dicts, sets, tuples, heaps, deques, Counter, defaultdict, time complexity, sorting, and selection strategy. The most comprehensive data structures module for Python engineers.
Python Data Types at the Hardware: Practice Problems & Exercises
Solve 12 Python data types at the hardware level problems. Covers data types, numpy dtypes, hardware types. Hints and solutions.
Python Database Migrations with Alembic: Practice Problems & Exercises
Solve 11 Python database migrations with alembic problems. Covers alembic migrations, database schema, alembic upgrade. Hints and solutions.
Python Dataclasses — Code Generation, Immutability,: Practice Problems & Exercises
Solve 11 Python dataclasses — code generation, immutability, and production patterns problems. Covers dataclasses practice, @dataclass exercises. Hints and s...
Python Debugging Strategies Practice Problems & Exercises
Solve 11 Python debugging strategies problems. Covers debugging practice, pdb exercises, breakpoint practice. Hints and solutions.
Python Decorators — Wrapping Callables at: Practice Problems & Exercises
Solve 11 Python decorators — wrapping callables at engineering depth problems. Covers decorators practice, functools.wraps exercises. Hints and solutions.
Python Default Parameters Pitfalls: Practice Problems & Exercises
Solve 11 Python default parameters pitfalls problems. Covers mutable default, None sentinel, default parameter. Hints and solutions.
Python Defensive Programming Practice Problems & Exercises
Solve 11 Python defensive programming problems. Covers input validation, LBYL EAFP, guard clauses. Hints and solutions.
Python Defining Functions Practice Problems & Exercises
Solve 11 Python defining functions problems. Covers functions practice, def exercises, function design. Hints and solutions.
Python Dependency Injection Practice Problems & Exercises
Solve 11 Python dependency injection problems. Covers DI container, constructor injection, FastAPI dependency. Hints and solutions.
Python Deque and Collections Practice Problems & Exercises
Solve 11 Python deque and collections problems. Covers deque practice, collections deque, deque sliding. Hints and solutions.
Python Descriptors Practice Problems & Exercises
Solve 11 Python descriptors problems (3 Easy, 4 Medium, 4 Hard). Practice descriptor practice, __get__ __set__ with hints, runnable code, and solutions.
Python Design Patterns in Python —: Practice Problems & Exercises
Solve 11 Python design patterns in python — idiomatic implementations for production code problems. Covers design patterns, singleton pattern, factory patter...
Python Designing Clean APIs Practice Problems & Exercises
Solve 11 Python designing clean apis problems. Covers clean api, function naming, single responsibility. Hints and solutions.
Python Designing Decision Trees Practice Problems & Exercises
Solve 10 Python designing decision trees problems. Covers decision tree, branching logic, decision table. Hints and solutions.
Python Dictionary Hashing Mechanism: Practice Problems & Exercises
Solve 12 Python dictionary hashing mechanism problems. Covers dictionary hashing, hash table, dict collision. Hints and solutions.
Python Disassembly with dis Practice Problems & Exercises
Solve 11 Python disassembly with dis problems. Covers dis module, bytecode disassembly, opcodes practice. Hints and solutions.
Python Docstrings Practice Problems & Exercises
Solve 11 Python docstrings and documentation problems. Covers docstrings practice, google style, numpy docstrings. Hints and solutions.
Python Dunder Methods — Python's Protocol: Practice Problems & Exercises
Solve 11 Python dunder methods — python's protocol system at engineering depth problems. Covers dunder methods, magic methods, operator overloading. Hints an...
Python Dynamic Class Creation Practice Problems & Exercises
Solve 11 Python dynamic class creation problems. Covers dynamic class, type() exercises, class factory. Hints and solutions.
Python Encapsulation Practice Problems & Exercises
Solve 11 Python encapsulation and data hiding — properties, name mangling, and descriptors problems. Covers encapsulation practice, properties exercises. Hin...
Python Environment Variables Practice Problems & Exercises
Solve 11 Python environment variables problems. Covers os.environ exercises, os.getenv python, dotenv practice. Hints and solutions.
Python Everything Is an Object Practice Problems & Exercises
Solve 12 Python everything is an object problems. Covers object model, type id, first-class functions. Hints and solutions.
Python Exception Hierarchy Practice Problems & Exercises
Solve 11 Python exception hierarchy problems. Covers BaseException vs, isinstance exception, catching parent. Hints and solutions.
Python Exceptions Explained Practice Problems & Exercises
<PracticePageHeader
Python Execution Model in Practice: Practice Problems & Exercises
Solve 10 Python execution model in practice problems. Covers execution model, bytecode exercises, AST practice. Hints and solutions.
Python FastAPI Practice Problems & Exercises
Solve 11 Python fastapi problems (4 Easy, 4 Medium, 3 Hard). Practice fastapi practice, fastapi path, pydantic model with hints, runnable code, and solutions.
Python Flask Practice Problems & Exercises
Solve 11 Python flask problems (4 Easy, 4 Medium, 3 Hard). Practice flask practice, flask routing, flask blueprints with hints, runnable code, and solutions.
Python Flowcharts Practice Problems & Exercises
Solve 10 Python flowcharts coding problems (3 Easy, 4 Medium, 3 Hard). Covers flowchart practice, flowchart to, control flow. Full hints and solutions included.
Python for Loops Internals Practice Problems & Exercises
Solve 12 Python for loops internals problems. Covers for loop, iterator protocol, enumerate zip. Hints and solutions.
Python for Vector Search
Embeddings, vector databases, similarity search, RAG pipelines, and production vector search in Python with FAISS, Chroma, Pinecone, and pgvector.
Python Formatting and Tooling Practice Problems & Exercises
Solve 11 Python formatting and tooling problems. Covers black formatter, isort python, flake8 error, mypy type. Hints and solutions.
Python Functools Module Practice Problems & Exercises
Solve 11 Python functools module problems (4 Easy, 4 Medium, 3 Hard). Practice functools module with hints, runnable code, and solutions.
Python Garbage Collection — Generational GC: Practice Problems & Exercises
Solve 11 Python garbage collection — generational gc and cycle detection problems. Covers garbage collection, gc module, cyclic garbage. Hints and solutions.
Python Generators Practice Problems & Exercises
Solve 11 Python generators and yield — suspended execution at engineering depth problems. Covers generators practice, yield exercises, generator state. Hints...
Python Generics and TypeVar Practice Problems & Exercises
Solve 11 Python generics and typevar problems. Covers TypeVar practice, generics exercises, Generic class. Hints and solutions.
Python Guard Clauses Practice Problems & Exercises
Solve 10 Python guard clauses and defensive logic problems. Covers guard clauses, early return, fail fast. Hints and solutions.
Python Heap and Priority Queue Practice Problems & Exercises
Solve 11 Python heap and priority queue problems. Covers heapq practice, priority queue, min heap. Hints and solutions.
Python Hexagonal Architecture (Ports and Adapters): Practice Problems & Exercises
Solve 11 Python hexagonal architecture (ports and adapters) problems. Covers hexagonal architecture, ports and, protocol port. Hints and solutions.
Python Higher-Order Functions Practice Problems & Exercises
<PracticePageHeader
Python HTTP Deep Dive Practice Problems & Exercises
Solve 11 Python http deep dive problems. Covers http practice, http methods, http status, http headers. Hints and solutions.
Python Identity vs Equality Practice Problems & Exercises
Solve 12 Python identity vs equality problems. Covers is vs, identity equality, __eq__ __hash__. Hints and solutions.
Python if/elif/else - The Complete Deep Dive
Master Python conditional logic at the engineering level - evaluation order, truthy testing, ternary expressions, nested conditions, guard clause alternatives, and the real cost of deep nesting. Better than anything on W3Schools or GeeksforGeeks.
Python if/elif/else Deep Dive Practice Problems & Exercises
Solve 12 Python if/elif/else deep dive problems. Covers if elif, conditionals exercises, ternary operator. Hints and solutions.
Python Immutability Strategies Practice Problems & Exercises
Solve 11 Python immutability strategies problems (4 Easy, 4 Medium, 3 Hard). Practice immutability strategies with hints, runnable code, and solutions.
Python Import Hooks Practice Problems & Exercises
Solve 11 Python import hooks problems. Covers sys.meta_path exercises, custom finder, import system. Hints and solutions.
Python Indexing Practice Problems & Exercises
Solve 11 Python indexing and query optimization problems. Covers database indexing, sql index, b-tree index. Hints and solutions.
Python Inheritance — Single, Multiple, and: Practice Problems & Exercises
Solve 11 Python inheritance — single, multiple, and cooperative at engineering depth problems. Covers inheritance practice, single inheritance. Hints and sol...
Python Input and Output Practice Problems & Exercises
Solve 12 Python input and output problems. Covers input output, f-string exercises, print formatting. Hints and solutions.
Python Input Validation Practice Problems & Exercises
Solve 11 Python input validation and sanitization problems. Covers input validation, whitelist validation, regex input. Hints and solutions.
Python Installing Python Properly: Practice Problems & Exercises
Solve 10 Python installing python properly problems. Covers installation practice, pyenv exercises, venv practice. Hints and solutions.
Python Internals Module Projects - Engineering Challenges
Two hands-on Python internals engineering projects for the Python Intermediate module. Build real tools using CPython's bytecode APIs, the dis module, AST inspection, tracemalloc, and sys.setprofile.
Python Interning Practice Problems & Exercises
Solve 10 Python interning and object caching problems. Covers interning practice, integer cache, string interning. Hints and solutions.
Python JSON Handling Practice Problems & Exercises
Solve 11 Python json handling problems. Covers json practice, json.dumps json.loads, custom json. Hints and solutions.
Python JSON Serialization Practice Problems & Exercises
Solve 11 Python json serialization problems. Covers json dumps, custom json, dataclass serialization. Hints and solutions.
Python JWT Authentication Practice Problems & Exercises
Solve 11 Python jwt authentication problems (4 Easy, 4 Medium, 3 Hard). Practice JWT exercises, JSON web, JWT signing with hints, runnable code, and solutions.
Python Keyword-Only Practice Problems & Exercises
<PracticePageHeader
Python Lambda Expressions — Anonymous Functions: Practice Problems & Exercises
Solve 11 Python lambda expressions — anonymous functions at engineering depth problems. Covers lambda expressions, lambda exercises, lambda sorting. Hints an...
Python Line Profiler Practice Problems & Exercises
Solve 11 Python line profiler and memory profiler problems. Covers line_profiler practice, memory_profiler python. Hints and solutions.
Python Linting and Formatting Practice Problems & Exercises
Solve 11 Python linting and formatting problems. Covers linting practice, formatting exercises, flake8 problems. Hints and solutions.
Python List Comprehensions Deep Dive: Practice Problems & Exercises
Solve 12 Python list comprehensions deep dive problems. Covers list comprehension, generator expression. Hints and solutions.
Python Lists Internals - Dynamic Arrays, Memory Layout, and Amortized Complexity
Master Python list internals at the engineering level - dynamic array architecture, CPython memory layout, over-allocation strategy, amortized O(1) append, and production-level list pitfalls. Better than W3Schools or GeeksforGeeks.
Python Locks, Semaphores, Practice Problems & Exercises
Solve 11 Python locks, semaphores, and synchronization problems. Covers lock practice, semaphore exercises, threading lock. Hints and solutions.
Python Logging Basics Practice Problems & Exercises
Solve 11 Python logging basics problems. Covers logging practice, logging exercises, logging module. Hints and solutions.
Python map, filter, reduce — Lazy: Practice Problems & Exercises
Solve 11 Python map, filter, reduce — lazy iteration and the pipeline model problems. Covers map filter, map exercises, filter practice. Hints and solutions.
Python Memory Optimisation
Object memory overhead, __slots__, generators, memory-mapped files, and GC tuning - reducing Python's memory footprint in production.
Python Memory Optimization Practice Problems & Exercises
Solve 11 Python memory optimization problems. Covers __slots__ python, generators memory, array module. Hints and solutions.
Python Memory Profiling — tracemalloc, sys.getsizeof,: Practice Problems & Exercises
Solve 11 Python memory profiling — tracemalloc, sys.getsizeof, objgraph, and pympler problems. Covers memory profiling, tracemalloc exercises, memory leak. H...
Python Memory References Practice Problems & Exercises
Solve 11 Python memory references and aliasing problems. Covers memory references, aliasing exercises, weakref practice. Hints and solutions.
Python Metaclasses Practice Problems & Exercises
Solve 11 Python metaclasses problems. Covers metaclass practice, type() exercises, __new__ problems. Hints and solutions.
Python Microservices vs Monolith Practice Problems & Exercises
Solve 11 Python microservices vs monolith problems. Covers microservices vs, bounded context, modular monolith. Hints and solutions.
Python Middleware Practice Problems & Exercises
Solve 11 Python middleware problems. Covers middleware practice, logging middleware, rate limiting. Hints and solutions.
Python Mocking and Test Doubles Practice Problems & Exercises
Solve 11 Python mocking and test doubles problems. Covers mocking practice, unittest mock, mock patch. Hints and solutions.
Python MRO — Method Resolution Order: Practice Problems & Exercises
Solve 11 Python mro — method resolution order and the c3 linearisation algorithm problems. Covers MRO practice, method resolution, C3 linearisation. Hints an...
Python Multiprocessing in Python Practice Problems & Exercises
Solve 11 Python multiprocessing in python problems. Covers multiprocessing practice, process pool, shared memory. Hints and solutions.
Python Mutable Practice Problems & Exercises
Solve 11 Python mutable vs immutable revisited problems. Covers mutable immutable, object identity, mutable default. Hints and solutions.
Python Naming Conventions Practice Problems & Exercises
Solve 11 Python naming conventions problems. Covers snake_case exercises, PascalCase python. Hints and solutions.
Python Nested Logic Patterns Practice Problems & Exercises
Solve 10 Python nested logic patterns problems. Covers nested conditionals, flatten nested, lookup table. Hints and solutions.
Python None and Implicit Return Practice Problems & Exercises
Solve 11 Python none and implicit return problems. Covers None practice, implicit return, is None. Hints and solutions.
Python OAuth 2 and OIDC Practice Problems & Exercises
Solve 11 Python oauth 2 and oidc problems. Covers OAuth2 practice, OAuth2 authorization, PKCE python. Hints and solutions.
Python Objects Under the Hood
PyObject layout, type objects, reference counting, small integer cache, string interning, and the cost of Python's dynamic type system.
Python Operators Practice Problems & Exercises
Solve 12 Python operators problems (4 Easy, 5 Medium, 3 Hard). Practice operators practice, operator precedence with hints, runnable code, and solutions.
Python ORM with SQLAlchemy Practice Problems & Exercises
Solve 11 Python orm with sqlalchemy problems. Covers sqlalchemy practice, sqlalchemy orm, sqlalchemy session. Hints and solutions.
Python OS Module Practice Problems & Exercises
Solve 11 Python os module problems. Covers os.path exercises, os.walk practice, os.makedirs python. Hints and solutions.
Python Overload Practice Problems & Exercises
Solve 11 Python overload and type narrowing problems. Covers overload practice, type narrowing, @overload problems. Hints and solutions.
Python Parameters vs Arguments Practice Problems & Exercises
Solve 11 Python parameters vs arguments problems. Covers parameters vs, pass by, rebinding vs, mutable argument. Hints and solutions.
Python ParamSpec and Concatenate Practice Problems & Exercises
Solve 11 Python paramspec and concatenate problems. Covers ParamSpec practice, Concatenate exercises. Hints and solutions.
Python Partial and Currying Practice Problems & Exercises
Solve 11 Python partial and currying problems (4 Easy, 4 Medium, 3 Hard). Practice partial and with hints, runnable code, and solutions.
Python Pathlib Deep Dive Practice Problems & Exercises
Solve 11 Python pathlib deep dive problems. Covers pathlib practice, Path object, glob rglob. Hints and solutions.
Python Pattern-Driven Condition Design: Practice Problems & Exercises
Solve 10 Python pattern-driven condition design problems. Covers condition design, strategy pattern, dispatch table. Hints and solutions.
Python PEP8 and Style Practice Problems & Exercises
Solve 11 Python pep8 and style problems. Covers pep8 practice, flake8 exercises, style guide. Hints and solutions.
Python pip and Requirements Practice Problems & Exercises
Solve 11 Python pip and requirements problems. Covers pip practice, requirements.txt exercises. Hints and solutions.
Python Plugin Systems Practice Problems & Exercises
Solve 11 Python plugin systems problems (3 Easy, 4 Medium, 4 Hard). Practice plugin system, entry_points exercises with hints, runnable code, and solutions.
Python Poetry Practice Problems & Exercises
Solve 11 Python poetry problems. Covers poetry practice, poetry lockfile, poetry dependency. Hints and solutions.
Python PostgreSQL with Python Practice Problems & Exercises
Solve 11 Python postgresql with python problems. Covers postgresql practice, psycopg2 python, postgresql jsonb. Hints and solutions.
Python Pre-Commit Hooks Practice Problems & Exercises
Solve 11 Python pre-commit hooks problems. Covers pre-commit config, git hooks, pre-commit tutorial. Hints and solutions.
Python Primitive Data Types Practice Problems & Exercises
Solve 12 Python primitive data types coding problems (4 Easy, 5 Medium, 3 Hard). Covers data types, int float, bool practice. Full hints and solutions included.
Python Production Async Architecture: Practice Problems & Exercises
Solve 11 Python production async architecture problems. Covers production async, graceful shutdown, async health. Hints and solutions.
Python Profiling Strategy Practice Problems & Exercises
Solve 11 Python profiling strategy coding problems (4 Easy, 4 Medium, 3 Hard). Covers timeit python, performance measurement. Full hints and solutions included.
Python Project Structure Practice Problems & Exercises
Solve 11 Python project structure problems. Covers src layout, pyproject.toml practice, __init__.py python. Hints and solutions.
Python Protocol Practice Problems & Exercises
Solve 11 Python protocol and structural subtyping problems. Covers Protocol practice, structural subtyping, duck typing. Hints and solutions.
Python Pseudocode Writing Practice Problems & Exercises
Solve 10 Python pseudocode writing problems. Covers pseudocode practice, algorithm design, pseudocode to. Hints and solutions.
Python Publishing Packages Practice Problems & Exercises
Solve 11 Python publishing packages problems. Covers pypi upload, wheel sdist, twine upload. Hints and solutions.
Python Pure Functions Practice Problems & Exercises
Solve 11 Python pure functions problems (4 Easy, 4 Medium, 3 Hard). Practice pure functions with hints, runnable code, and solutions.
Python pyproject.toml Practice Problems & Exercises
Solve 11 Python pyproject.toml problems. Covers pyproject.toml practice, PEP 517, build backend. Hints and solutions.
Python pytest Framework Practice Problems & Exercises
Solve 11 Python pytest framework problems. Covers pytest practice, pytest exercises, pytest problems. Hints and solutions.
Python Python Lists Internals Practice Problems & Exercises
Solve 12 Python python lists internals problems. Covers lists practice, dynamic array, list internals. Hints and solutions.
Python Race Conditions Practice Problems & Exercises
Solve 11 Python race conditions and thread safety problems. Covers race condition, thread safety, data race. Hints and solutions.
Python Raising Exceptions Practice Problems & Exercises
Solve 11 Python raising exceptions problems. Covers raise exception, raise from, bare raise, guard clause. Hints and solutions.
Python Reading Files Practice Problems & Exercises
Solve 11 Python reading files problems. Covers open function, file reading, readline readlines. Hints and solutions.
Python Recursion Fundamentals Practice Problems & Exercises
Solve 11 Python recursion fundamentals problems. Covers recursion practice, recursive functions. Hints and solutions.
Python Refactoring Techniques Practice Problems & Exercises
Solve 11 Python refactoring techniques problems. Covers refactoring practice, extract function, replace magic. Hints and solutions.
Python Reference Counting Practice Problems & Exercises
Solve 11 Python reference counting problems. Covers sys getrefcount, memory management, weakref exercises. Hints and solutions.
Python Representation Practice Problems & Exercises
Solve 11 Python representation and string methods — __repr__, __str__, __format__ at engineering depth problems. Covers __repr__ __str__, __format__ exercise...
Python Request-Response Lifecycle: Practice Problems & Exercises
Solve 11 Python request-response lifecycle problems. Covers request response, wsgi callable, middleware execution. Hints and solutions.
Python REST Principles Practice Problems & Exercises
Solve 11 Python rest principles problems (4 Easy, 4 Medium, 3 Hard). Practice rest api, restful resource, crud http with hints, runnable code, and solutions.
Python Return Semantics Practice Problems & Exercises
Solve 11 Python return semantics problems. Covers multiple return, tuple unpacking, guard clause. Hints and solutions.
Python Runtime Type Checking Practice Problems & Exercises
Solve 11 Python runtime type checking problems. Covers runtime type, isinstance exercises, runtime validation. Hints and solutions.
Python Scope and LEGB Practice Problems & Exercises
Solve 11 Python scope and legb problems (4 Easy, 4 Medium, 3 Hard). Practice scope practice, LEGB rule, global keyword with hints, runnable code, and solutions.
Python Secrets Management Practice Problems & Exercises
Solve 11 Python secrets management problems. Covers os.environ config, python-dotenv loading, vault secret. Hints and solutions.
Python Secure Coding Patterns Practice Problems & Exercises
Solve 11 Python secure coding patterns problems. Covers secure coding, least privilege, fail-safe defaults. Hints and solutions.
Python Semantic Versioning Practice Problems & Exercises
Solve 11 Python semantic versioning problems. Covers semver python, version specifiers, breaking changes. Hints and solutions.
Python Serialization Concepts Practice Problems & Exercises
Solve 11 Python serialization concepts problems. Covers pickle practice, shelve module, serialization practice. Hints and solutions.
Python Sets Practice Problems & Exercises
Solve 12 Python sets and mathematical operations problems. Covers sets practice, set operations, set intersection. Hints and solutions.
Python Shallow vs Deep Copy Practice Problems & Exercises
Solve 11 Python shallow vs deep copy problems. Covers shallow copy, deep copy, copy module, nested mutation. Hints and solutions.
Python Short-Circuit Evaluation Practice Problems & Exercises
Solve 10 Python short-circuit evaluation problems. Covers short circuit, and or, lazy evaluation, default values. Hints and solutions.
Python SOLID Principles in Python —: Practice Problems & Exercises
Solve 11 Python solid principles in python — engineering patterns for maintainable code problems. Covers SOLID principles, single responsibility, open closed...
Python Sorting Mechanisms Practice Problems & Exercises
Solve 11 Python sorting mechanisms problems. Covers sorting practice, timsort practice, sort vs. Hints and solutions.
Python SQL Fundamentals Practice Problems & Exercises
Solve 11 Python sql fundamentals problems (4 Easy, 4 Medium, 3 Hard). Practice sql select, sql group, sql window with hints, runnable code, and solutions.
Python SQL Injection Prevention Practice Problems & Exercises
Solve 11 Python sql injection prevention problems. Covers SQL injection, parameterized queries, SQLAlchemy ORM. Hints and solutions.
Python SQLite with Python Practice Problems & Exercises
Solve 11 Python sqlite with python problems. Covers sqlite practice, sqlite3 python, sqlite connection. Hints and solutions.
Python Stack Frames Practice Problems & Exercises
Solve 11 Python stack frames and call stack problems. Covers call stack, stack frame, inspect module. Hints and solutions.
Python Static Analysis in Practice: Practice Problems & Exercises
Solve 11 Python static analysis in practice problems. Covers static analysis, mypy exercises, pyright problems. Hints and solutions.
Python Strings Internals Practice Problems & Exercises
Solve 12 Python strings internals and immutability problems. Covers strings practice, string immutability, unicode practice. Hints and solutions.
Python Structural Pattern Matching: Practice Problems & Exercises
Solve 12 Python structural pattern matching problems. Covers match case, pattern matching, structural patterns. Hints and solutions.
Python Structured Concurrency with TaskGroup: Practice Problems & Exercises
Solve 11 Python structured concurrency with taskgroup problems. Covers TaskGroup practice, asyncio structured, asyncio gather. Hints and solutions.
Python sys Practice Problems & Exercises
Solve 11 Python sys and inspect — runtime introspection problems. Covers sys module, inspect module, inspect.signature problems. Hints and solutions.
Python Tail Recursion Concept Practice Problems & Exercises
Solve 11 Python tail recursion concept problems. Covers tail recursion, trampoline pattern, accumulator pattern. Hints and solutions.
Python TDD Principles Practice Problems & Exercises
Solve 11 Python tdd principles problems. Covers TDD practice, test driven, red green, TDD tutorial. Hints and solutions.
Python The 12-Factor App Practice Problems & Exercises
Solve 11 Python the 12-factor app problems (3 Easy, 4 Medium, 4 Hard). Practice 12-factor app, 12-factor methodology with hints, runnable code, and solutions.
Python The Event Loop Explained Practice Problems & Exercises
Solve 11 Python the event loop explained problems. Covers event loop, asyncio event, call_soon call_later. Hints and solutions.
Python The GIL Explained Practice Problems & Exercises
Solve 11 Python the gil explained problems. Covers GIL practice, global interpreter, GIL threading. Hints and solutions.
Python The Iterator Protocol — How: Practice Problems & Exercises
Solve 11 Python the iterator protocol — how python's for loop really works problems. Covers iterator protocol, __iter__ __next__, iterable vs. Hints and solu...
Python The Python Import System —: Practice Problems & Exercises
Solve 11 Python the python import system — importlib, finders, loaders, and import hooks problems. Covers import system, importlib exercises, sys.modules cac...
Python Threading in Python Practice Problems & Exercises
Solve 11 Python threading in python problems. Covers threading practice, thread creation, daemon thread. Hints and solutions.
Python ThreadPoolExecutor Practice Problems & Exercises
Solve 11 Python threadpoolexecutor and processpoolexecutor problems. Covers ThreadPoolExecutor practice, concurrent futures. Hints and solutions.
Python Time Complexity of Data Structures: Practice Problems & Exercises
Solve 11 Python time complexity of data structures problems. Covers time complexity, big o, data structure. Hints and solutions.
Python Transactions Practice Problems & Exercises
Solve 11 Python transactions and data integrity problems. Covers database transactions, acid python, database isolation. Hints and solutions.
Python Truthiness and Falsiness Practice Problems & Exercises
Solve 12 Python truthiness and falsiness problems. Covers truthiness practice, falsy values, __bool__ practice. Hints and solutions.
Python try-except-finally Practice Problems & Exercises
<PracticePageHeader
Python Tuples and Immutability Practice Problems & Exercises
Solve 12 Python tuples and immutability problems. Covers tuples practice, immutability exercises, named tuple. Hints and solutions.
Python Type Casting and Coercion Practice Problems & Exercises
Solve 10 Python type casting and coercion problems. Covers type casting, coercion exercises, type conversion. Hints and solutions.
Python Type System Practice Problems & Exercises
Solve 10 Python type system and dynamic typing problems. Covers dynamic typing, duck typing, type hints. Hints and solutions.
Python Understanding the REPL Practice Problems & Exercises
Solve 10 Python understanding the repl problems. Covers REPL practice, interactive mode, underscore variable. Hints and solutions.
Python unittest Framework Practice Problems & Exercises
Solve 11 Python unittest framework problems (4 Easy, 4 Medium, 3 Hard). Practice unittest practice, unittest exercises with hints, runnable code, and solutions.
Python Validation with Pydantic Practice Problems & Exercises
Solve 11 Python validation with pydantic problems. Covers pydantic practice, pydantic basemodel, field validator. Hints and solutions.
Python Variables & Name Binding - The Complete Deep Dive
Master Python variables at the engineering level - name binding, object references, mutation vs reassignment, identity vs equality, copy semantics, and common traps. Better than anything on W3Schools or GeeksforGeeks.
Python Variables in Memory Practice Problems & Exercises
Solve 12 Python variables in memory problems. Covers variables practice, memory model, is vs, mutable vs. Hints and solutions.
Python Variables Practice Problems & Exercises
Solve 12 Python variables and assignment deep dive problems. Covers variables practice, name binding, assignment practice. Hints and solutions.
Python Vectorization with NumPy Practice Problems & Exercises
Solve 11 Python vectorization with numpy problems. Covers numpy vectorization, numpy broadcasting, numpy ufunc. Hints and solutions.
Python venv and virtualenv Practice Problems & Exercises
Solve 11 Python venv and virtualenv problems. Covers venv practice, virtualenv exercises, venv activation. Hints and solutions.
Python Version Control Basics Practice Problems & Exercises
Solve 11 Python version control basics problems. Covers git workflow, gitignore python, conventional commits. Hints and solutions.
Python while Loops Practice Problems & Exercises
Solve 10 Python while loops and control flow problems. Covers while loop, retry logic, state machine, loop exercises. Hints and solutions.
Python Working with Directories Practice Problems & Exercises
Solve 11 Python working with directories problems. Covers directory operations, os.makedirs practice. Hints and solutions.
Python Writing Files Practice Problems & Exercises
Solve 11 Python writing files coding problems (4 Easy, 4 Medium, 3 Hard). Covers write file, file modes, writelines practice. Full hints and solutions included.
PyTorch Fundamentals
PyTorch tensors, autograd, neural network modules, training loops, GPU acceleration, and production patterns for deep learning.
Race Conditions and Thread Safety
Understand race conditions at the CPU level - why they happen, how to detect them, and how to write thread-safe Python code that behaves correctly under concurrency.
Raising Exceptions - When and How to Signal Errors
Master the art of raising exceptions in Python - when to raise vs return, how to write good error messages, exception chaining, guard clauses, and how to design exception behavior for library code vs application code.
Reading Files - open(), Modes, Encodings, and Buffering
Master file reading in Python at engineering depth - understand open() parameters, text vs binary mode, UTF-8 encodings, buffered I/O internals, and strategies for reading 10GB log files without running out of memory.
Real-Time Data Stream Processor
Build an async pipeline processing multiple data streams with TaskGroup.
Recursion Fundamentals - Thinking in Self-Reference
Master Python recursion at engineering depth - base cases, recursive reduction, call stack mechanics, Python's recursion limit, classic algorithms, the dramatic performance difference between naive and memoized Fibonacci, and when recursion is the right tool.
Recursive File Explorer
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Refactorign all previous projects
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Refactoring Techniques - Improving Code Without Breaking It
Learn systematic refactoring techniques with Python examples - how to restructure code safely, when to refactor vs rewrite, and how to keep tests green throughout.
Reference Counting - How CPython Manages Memory at the C Level
Master CPython's reference counting mechanism at engineering depth - ob_refcnt, sys.getrefcount, ctypes raw refcount access, tp_dealloc, reference cycles, weakref module, and why del x does not immediately destroy an object.
Representation and String Methods - __repr__, __str__, __format__ at Engineering Depth
Master Python's string representation protocol - __repr__ vs __str__, the eval() contract, __format__ for custom f-string specs, __bytes__, the !r !s !a conversion flags, and how great repr() transforms production debugging.
Request-Response Lifecycle - Every Step From Client to Handler and Back
Trace an HTTP request through its full 15+ step lifecycle - DNS, TCP, TLS, load balancer, reverse proxy, ASGI server, middleware, routing, validation, handler, serialisation, and response - with production debugging techniques.
REST Principles - Designing APIs That Don't Break Clients
Master REST at engineering depth - Roy Fielding's six constraints, uniform interface, URL design, HTTP method semantics, status codes, pagination patterns, versioning strategies, RFC 7807 error format, and the Richardson Maturity Model.
Return Semantics - What Python Functions Actually Return
Master Python return semantics at engineering depth - how the RETURN_VALUE opcode works, why multiple return values are actually tuples, guard clauses, type-consistent returns, factory functions, and the Result pattern for error handling without exceptions.
Robust File Reader
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Rule Based Discount Engine
Build a deterministic pricing engine using rule ordering, guard clauses, decision trees, and scalable branching architecture in Python.
Runtime Type Checking
Validate data at system boundaries using get_type_hints, isinstance limitations, beartype, typeguard, and Pydantic's runtime validation model, and build a custom runtime validator.
Scikit-Learn Pipelines
Scikit-learn Pipeline, ColumnTransformer, custom transformers, feature unions, and production-ready ML workflows.
SciPy for ML
SciPy for machine learning - optimisation, sparse matrices, statistical distributions, signal processing, and distance metrics.
Scope and LEGB - How Python Resolves Names
Master Python's scope resolution at engineering depth - the LEGB rule, how the compiler decides LOAD_FAST vs LOAD_GLOBAL at compile time, global and nonlocal keywords, and common scope bugs.
Secrets Management
Manage secrets securely with python-dotenv, Pydantic SecretStr, AWS Secrets Manager, HashiCorp Vault, git-secrets, and production credential rotation strategies.
Secure Coding Patterns
Apply defense in depth, least privilege, CORS, rate limiting, CSP headers, dependency auditing with pip-audit, and static analysis with bandit to harden FastAPI applications.
Security Audit Tool
Build a CLI tool that scans Python projects for common security vulnerabilities.
Semantic Versioning - The Contract Behind Every Version Number
Master Semantic Versioning at engineering depth - MAJOR.MINOR.PATCH definitions, breaking change classification, Python version specifiers, pre-release ordering, CalVer, changelog discipline, and Git tagging for releases.
Serialization Concepts - pickle, dataclasses, and Format Tradeoffs
Understand Python serialization at engineering depth - pickle protocols and security risks, dataclasses with asdict, Pydantic for API validation, struct for binary protocols, and how to choose the right format for every use case.
Service Mesh Patterns
Circuit breakers, retries, bulkheads, timeouts, service discovery, and observability - resilience patterns for Python microservices.
Sets and Mathematical Operations - Hash-Based Membership Testing
Master Python sets at the engineering level - hash table internals without values, frozenset, O(1) membership testing vs O(n) list scan, union/intersection/difference/symmetric difference with Venn diagrams, performance benchmarking, deduplication patterns, and a 10M-line log analysis design challenge.
Shallow vs Deep Copy - Understanding Python's Memory Model
Master shallow and deep copy in Python at the engineering level - assignment aliasing, copy.copy() vs copy.deepcopy(), ASCII memory diagrams, the memo dict, circular references, custom __copy__/__deepcopy__ protocols, and production-ready patterns for defensive copying.
Shared Memory and IPC
POSIX shared memory, pipes, FIFOs, message queues, semaphores, and multiprocessing.shared_memory - Python inter-process communication.
Short-Circuit Evaluation - The Execution Model Behind Python's Logical Operators
Master Python's short-circuit evaluation at engineering depth - exact return value semantics of and/or, safety guard patterns, default value traps, any() and all() internals, performance ordering, side effects in short-circuited expressions, and identity elements of empty sequences.
Sockets and Networking
BSD socket API in Python, TCP/UDP from scratch, non-blocking sockets, Unix domain sockets, and building a minimal HTTP server.
SOLID Principles
Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion - applied to production Python.
SOLID Principles in Python - Engineering Patterns for Maintainable Code
Master all five SOLID principles with Python-specific implementations - SRP with module-level decomposition, OCP with typing.Protocol, LSP violations and their consequences, ISP with small focused ABCs, and DIP with constructor injection. Production code examples for each.
Sorting Mechanisms - Timsort and Python's Sort Guarantee
Deep engineering-level exploration of Python's Timsort algorithm, sort() vs sorted() internals, stability guarantees, performance characteristics, edge cases, and real-world sorting patterns for production systems.
SQL Fundamentals for Python Engineers
Master SQL from an engineering perspective - SELECT, JOIN, GROUP BY, subqueries, window functions, and writing queries that scale.
SQL Injection Prevention
Prevent SQL injection through parameterized queries, SQLAlchemy best practices, ORM safety limits, raw SQL auditing, and defense against UNION, blind, and second-order injection.
SQLite with Python
Use SQLite for development, testing, and embedded applications - the sqlite3 module, connection management, cursors, parameterized queries, and row factories.
Stack Frames and Call Stack - Inside Python's Execution Model
Master Python's call stack at engineering depth - PyFrameObject internals, how each function call creates a frame, how to inspect the stack, and why this matters for generators, async/await, and debugging.
Static Analysis in Practice
Configure mypy and pyright for strict mode, gradual typing adoption, type stubs, py.typed markers, CI integration, and strategies for migrating untyped codebases.
Streaming LLM Responses
Streaming LLM output in Python - server-sent events, async generators, FastAPI streaming endpoints, and building real-time chat UIs.
Strings Internals and Immutability - Engineering the Text Layer
Go beyond treating strings as simple text. Learn how CPython stores strings using PEP 393 flexible representation, why immutability is a deliberate design decision, how string interning works, and why naive concatenation in a loop silently destroys performance.
Structural Pattern Matching - Python's Most Misunderstood Feature
Master Python structural pattern matching (PEP 634, Python 3.10+) at engineering depth - literal, capture, wildcard, OR, sequence, mapping, class, and guard patterns, with real-world CLI and API dispatch use cases.
Structural Patterns
Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy - structural design patterns in idiomatic Python.
Structured Concurrency with TaskGroup
Master asyncio.TaskGroup for safe concurrent execution, understand why gather() leaks tasks, handle ExceptionGroups, and implement the nursery pattern.
Structured Logging
Python logging module internals, structlog, JSON logs, correlation IDs, log levels, and log aggregation - from print() to production-grade structured logs.
sys and inspect - Runtime Introspection at Engineering Depth
Master the sys and inspect modules at engineering depth - sys.argv, sys.path, sys.modules cache, sys.settrace, sys._getframe, inspect.signature with all parameter kinds, inspect.getsource, inspect.stack, and how FastAPI, pytest, and click use these modules to build their core features.
Tail Recursion - Why Python Doesn't Optimize It and What to Do
Understand tail recursion and tail call optimization (TCO), why Python deliberately does not implement TCO, and the practical techniques to handle deep recursion safely in Python.
TDD Principles - Write the Test First, Let Failure Guide the Design
Master Test-Driven Development at engineering depth - the Red-Green-Refactor cycle, the three laws of TDD, worked BankAccount example, test naming, the test pyramid, London vs Detroit schools, and when TDD surfaces design problems before production.
The 12-Factor App - Building Deployable Python Apps
Apply the 12-Factor App methodology to Python applications with FastAPI, Docker, and PostgreSQL - covering all 12 factors with production-ready code examples.
The Event Loop Explained
Understand Python's asyncio event loop at engineering depth - how it works, selectors, callbacks, handles, and debugging event loop issues in production.
The functools Module - lru_cache, partial, reduce, singledispatch and More
Master the entire functools module at engineering depth - LRU cache internals and eviction, wraps, partial and partialmethod, reduce with operator, total_ordering, cached_property, singledispatch and singledispatchmethod, thread safety considerations, and real-world usage patterns.
The GIL Explained
What the GIL is, why it exists, how it works in CPython 3.12+, its performance impact, and the Python 3.13 free-threaded mode.
The GIL Explained - What It Is, What It Isn't, and How to Work Around It
Master Python's Global Interpreter Lock at engineering depth - what the GIL protects, why counter += 1 is not atomic, the check interval, I/O vs CPU-bound threading, multiprocessing, C extensions that release the GIL, and Python 3.13 free-threaded mode.
The Iterator Protocol - How Python's for Loop Really Works
Master Python's iterator protocol at engineering depth - __iter__, __next__, StopIteration, the iterable vs iterator distinction, for-loop desugaring, iter() with sentinel, next() with default, and lazy pipelines with itertools.
The os module - system calls and process interaction
Master Python's os module at engineering depth - how it wraps POSIX and Win32 system calls, when to use os vs pathlib vs shutil, directory traversal with os.walk, file permissions, process IDs, environment variables, and why you should never use os.system.
The Python Import System - importlib, Finders, Loaders, and Import Hooks
Master the Python import system at engineering depth - sys.modules cache, import resolution order, finders and loaders, importlib.import_module, relative vs absolute imports, __init__.py, __all__, circular imports, custom import hooks, and importlib.reload.
Threading in Python
Master Python threading - Thread creation, daemon threads, thread lifecycle, sharing state, the GIL's real impact, and when threading actually helps performance.
ThreadPoolExecutor and ProcessPoolExecutor
Master concurrent.futures - ThreadPoolExecutor, ProcessPoolExecutor, Future objects, as_completed, and building production-grade concurrent task pipelines.
Time Complexity of Python Data Structures - Big-O in Practice
Deep engineering-level exploration of Big-O analysis across all Python data structures - list, dict, set, tuple, string, deque - with amortized analysis, profiling with timeit, and data structure selection strategies for production systems.
Token Counting and Context Management
Tiktoken, tokenisation internals, context window management, sliding window strategies, and building cost-aware LLM applications.
Tool Use from Python
Building LLM tool use systems in Python -- function calling, tool schemas, execution loops, error handling, and multi-step agent patterns.
Traffic System Validator
Design a traffic light validation system to strengthen rule enforcement, state transitions, and structured conditional logic using Python fundamentals.
Transactions and Data Integrity
Master database transactions in Python - ACID properties, isolation levels, deadlocks, savepoints, and building transaction-safe data layers.
Truthiness and Falsiness - Python's Boolean Protocol at Engineering Depth
Master Python's truth value testing protocol including __bool__, __len__ fallback, short-circuit evaluation, logical operator semantics, NumPy pitfalls, and custom class design. Essential for writing safe, idiomatic Python.
try / except / else / finally - Python's Exception Handling Syntax
Master all four clauses of Python's exception handling syntax at engineering depth - execution order, the often-missed else clause, finally guarantees, EAFP vs LBYL patterns, and real-world retry and resource cleanup logic.
Tuples and Immutability - Engineering with Stable Data
Master Python tuple internals at the engineering level - CPython PyTupleObject layout, immutability vs constancy, hashability mechanics, named tuples, structural unpacking, and when to choose tuples over lists in production code.
Type Casting and Coercion - How Python Converts Types Internally
Understand Python's type conversion system at engineering depth. Learn how explicit casting calls dunder methods, where implicit coercion happens silently, how numeric promotion works, what truthiness really means, and the pitfalls that cause real production bugs.
Type Inspector Tool
Build an interactive CLI tool that inspects Python objects at runtime and reveals their type, identity, mutability, truthiness, and internal behavior.
Type System and Dynamic Typing - Engineering the Runtime Contract
A systems-level exploration of Python's type system covering static vs dynamic typing, strong vs weak typing, duck typing, runtime type checking, PEP 484 annotations, the typing module, mypy static analysis, type narrowing, and the engineering trade-offs of Python's gradual typing model.
Understanding the Python REPL - Interactive Execution Engine Deep Dive
Master the Python REPL at the engineering level - how Read-Eval-Print-Loop works internally, bytecode compilation in interactive mode, state persistence, the underscore variable, multi-line input, IPython, and professional use cases far beyond beginner experimentation.
unittest - The Standard Library Test Framework
Master Python's unittest framework at engineering depth - TestCase lifecycle, all assertion methods, assertRaises as context manager, setUp/tearDown/setUpClass, unittest.mock.patch, TestSuite, skip decorators, and subtests for parametrised testing.
Validation with Pydantic - Production Request and Response Models
Master Pydantic v2 at engineering depth - BaseModel, Field constraints, field and model validators, ORM mode, discriminated unions, partial updates for PATCH endpoints, JSON Schema generation, and the model_dump gotchas that silently corrupt production data.
Variables in Memory — Stack, Heap, and Python's Object Model
A deep engineering dive into how Python stores variables in memory — stack frames vs heap objects, reference counting, garbage collection, pointer arithmetic, and the complete object model that governs Python's behavior.
Vectorization with NumPy - Escaping Python's Loop Overhead
Understand why Python loops are slow, how NumPy's C-level loops bypass interpreter overhead, broadcasting rules, views vs copies, memory layout, ufuncs, and real-world data pipeline optimization.
venv and virtualenv - Python Environment Isolation
Master Python virtual environments at full engineering depth - how venv works at the filesystem level, PATH manipulation, pyvenv.cfg, pyenv for Python version management, and why Docker containers are not a substitute for virtual environments.
Version Control Basics - Git Workflows for Python Engineers
Learn the Git workflows, commit conventions, branching strategies, and Python-specific practices that professional engineering teams use daily.
while Loops and Control Flow - State-Driven Iteration, Retry Logic, and Infinite Loop Mastery
Master Python while loops at engineering depth - the while True pattern, state-based iteration, exponential backoff retry loops, walrus operator sentinels, recursion-to-while conversion, and infinite loop prevention. Build the iteration patterns used in servers, retry systems, and event loops.
Working with Directories - Navigation, Traversal, and File Operations
Master directory operations in Python at engineering depth - os.makedirs vs pathlib.mkdir, os.walk vs Path.rglob, shutil copy/move/delete, temporary directories, disk usage, and real-world project scaffolding and dataset management patterns.
Writing Files
Discover what programming truly means - beyond syntax - and build the engineering mindset required to master Python and computational systems.
Writing Files - Modes, Atomicity, and Safe File Updates
Master file writing in Python at engineering depth - understand write modes, flush vs fsync, atomic write patterns, temporary files, and how to update files safely without risking data loss or corruption.
Writing Python C Extensions
The Python C API, writing and building a C extension module, PyArg_ParseTuple, error handling, reference counting in C, and CFFI/ctypes alternatives.