Skip to content
ElectroHackingTHE CURIOUS NEVER STOP BUILDING.

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.

Python 3.11+Standard-library examplesOffline practiceFree enrollment

Start from zero

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

  1. Your first Python program
  2. Variables and types
  3. Decisions with if and else
  4. Loops and collections
  5. Reusable functions
  6. Validate input and handle errors
  7. Capstone: temperature report

Getting comfortable

  1. Install Python and build a learning workflow

Values and decisions

  1. Expressions, arithmetic, and numeric precision
  2. Truth values, comparisons, and short-circuit evaluation

Working with data

  1. Strings, Unicode, slicing, and bytes
  2. Lists, tuples, dictionaries, sets, and aliasing
  3. Loop patterns, comprehensions, and sorting

Reusable programs

  1. Function contracts, scope, and safe defaults
  2. Exceptions, validation, and useful error messages

Build something useful

  1. Files, paths, JSON, and safe persistence
  2. Modules, virtual environments, and command-line interfaces
  3. Testing, debugging, and boundary cases
  4. Capstone workshop: a dependable sensor report

Level assessment

    Open this level →

    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

    1. Classes, instances, and object invariants
    2. Dataclasses, equality, and value objects
    3. Composition, interfaces, and dependency injection

    Process real data

    1. Iterators, generators, and lazy pipelines
    2. CSV records, schema checks, and clean data
    3. SQLite, parameterized queries, and transactions
    4. HTTP APIs, status codes, timeouts, and contracts
    5. Dates, time zones, clocks, and durations
    6. Regular expressions and choosing the right parser

    Ship a small application

    1. Integration tests and a persistent monitoring capstone

    Level assessment

      Open this level →

      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

      1. Closures, decorators, and preserving function identity
      2. Context managers, cleanup, and ExitStack
      3. The data model: repr, len, iteration, and operators

      Build a maintainable library

      1. Typing, Protocol, generics, and runtime boundaries
      2. Algorithm choices, deque, Counter, and heaps
      3. Test design, invariants, and controlled randomness
      4. Packaging, public APIs, and dependency boundaries
      5. Capstone: a versioned data-processing library

      Level assessment

        Open this level →

        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

        1. asyncio, tasks, and structured concurrency
        2. Timeouts, cancellation, and bounded concurrency
        3. Threads, locks, and race conditions
        4. Process pools, serialization, and parallel work

        Understand runtime behavior

        1. Profiling, allocation, and evidence-based optimization
        2. Descriptors, properties, and attribute lookup
        3. Cooperative inheritance and structured failures

        Build resilient systems

        1. Secure boundaries: paths, commands, secrets, and serialization
        2. Retries, idempotency, and a concurrent collector capstone

        Level assessment

          Open this level →

          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

          1. Architecture: domain logic, application services, and adapters
          2. Transactions, durable idempotency, and the outbox pattern

          Operate a system

          1. Observability, structured events, and correlation context
          2. Streaming pipelines and backpressure
          3. Atomic replacement, durability, and recovery design

          Understand the machinery

          1. Introspection, ASTs, and building developer tools
          2. Class creation, __init_subclass__, and metaclasses

          From language to systems

          1. Apply the core: web services, data work, and embedded Python
          2. Final capstone: design, test, package, and operate a system

          Level assessment

            Open this level →

            Learn actively

            1. Read the analogy and its limitations.
            2. Predict the example output before running it.
            3. Run the saved Python file and explain each step.
            4. Attempt the exercise before opening its solution.
            5. 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.