ElectroHacking
Python: from zero to advanced engineering
Python is the subject. Each level below is a separate course with its own lessons, exercises, project brief, and assessment. Start with Foundations or choose a level whose prerequisites you can already demonstrate.
The Python learning path
Level 1 / Foundations
Python — Foundations
Read and write Python programs, model collections, handle files, and build a tested command-line tool.
Prerequisites: No programming experience. A computer with Python 3.11 or newer.
Published: 19 lessons · 2 assessments
Explore the syllabus
Your first working Python programs
- Your first Python program
- Variables and types
- Decisions with if and else
- Loops and collections
- Reusable functions
- Validate input and handle errors
- Capstone: temperature report
Getting comfortable
- Install Python and build a learning workflow
Values and decisions
- Expressions, arithmetic, and numeric precision
- Truth values, comparisons, and short-circuit evaluation
Working with data
- Strings, Unicode, slicing, and bytes
- Lists, tuples, dictionaries, sets, and aliasing
- Loop patterns, comprehensions, and sorting
Reusable programs
- Function contracts, scope, and safe defaults
- Exceptions, validation, and useful error messages
Build something useful
- Files, paths, JSON, and safe persistence
- Modules, virtual environments, and command-line interfaces
- Testing, debugging, and boundary cases
- Capstone workshop: a dependable sensor report
Level assessment
Level 2 / Intermediate
Python — Intermediate
Design reusable modules, work with object models, databases, and data formats, and test your code.
Prerequisites: Foundations, including functions, collections, files, and exceptions.
Published: 10 lessons · 1 assessment
Explore the syllabus
Model the problem
- Classes, instances, and object invariants
- Dataclasses, equality, and value objects
- Composition, interfaces, and dependency injection
Process real data
- Iterators, generators, and lazy pipelines
- CSV records, schema checks, and clean data
- SQLite, parameterized queries, and transactions
- HTTP APIs, status codes, timeouts, and contracts
- Dates, time zones, clocks, and durations
- Regular expressions and choosing the right parser
Ship a small application
- Integration tests and a persistent monitoring capstone
Level assessment
Level 3 / Intermediate+
Python — Intermediate+
Use Python protocols, generators, decorators, typing, and packaging to build reliable libraries.
Prerequisites: Intermediate and the ability to build a small multi-module application.
Published: 8 lessons · 1 assessment
Explore the syllabus
Python’s reusable patterns
- Closures, decorators, and preserving function identity
- Context managers, cleanup, and ExitStack
- The data model: repr, len, iteration, and operators
Build a maintainable library
- Typing, Protocol, generics, and runtime boundaries
- Algorithm choices, deque, Counter, and heaps
- Test design, invariants, and controlled randomness
- Packaging, public APIs, and dependency boundaries
- Capstone: a versioned data-processing library
Level assessment
Level 4 / Advanced
Python — Advanced
Reason about concurrency, measure performance, protect shared state, and secure application boundaries.
Prerequisites: Intermediate+ and confidence reading unfamiliar Python code.
Published: 9 lessons · 1 assessment
Explore the syllabus
Concurrent programs
- asyncio, tasks, and structured concurrency
- Timeouts, cancellation, and bounded concurrency
- Threads, locks, and race conditions
- Process pools, serialization, and parallel work
Understand runtime behavior
- Profiling, allocation, and evidence-based optimization
- Descriptors, properties, and attribute lookup
- Cooperative inheritance and structured failures
Build resilient systems
- Secure boundaries: paths, commands, secrets, and serialization
- Retries, idempotency, and a concurrent collector capstone
Level assessment
Level 5 / Advanced+
Python — Advanced+
Design production-oriented systems with explicit boundaries, resilient jobs, observable behavior, and an evaluated capstone.
Prerequisites: Advanced, especially concurrency, testing, and resource management.
Published: 9 lessons · 1 assessment
Explore the syllabus
Design for change
- Architecture: domain logic, application services, and adapters
- Transactions, durable idempotency, and the outbox pattern
Operate a system
- Observability, structured events, and correlation context
- Streaming pipelines and backpressure
- Atomic replacement, durability, and recovery design
Understand the machinery
- Introspection, ASTs, and building developer tools
- Class creation, __init_subclass__, and metaclasses
From language to systems
- Apply the core: web services, data work, and embedded Python
- Final capstone: design, test, package, and operate a system
Level assessment
Learn actively
- Read the analogy and its limitations.
- Predict the example output before running it.
- Run the saved Python file and explain each step.
- Attempt the exercise before opening its solution.
- Build the level project and use the assessment to identify gaps.
Download the Python example and solution files (ZIP)
Scope and next steps
This path covers core Python and practical software engineering through advanced application design. Web frameworks, scientific computing, machine learning, and microcontroller environments are specialization paths; no single course covers every third-party Python package. The Advanced+ course explains how the core skills transfer to those areas.
Examples use simulated data and local temporary resources. The website does not execute student Python code. Practice locally in a virtual environment.