Python roadmap

Move from your first assignment to a tested command-line tool.

Learning path

Follow the stages in order. Expand a stage for its goal and checkpoint, or choose a topic to open its lesson.

Start
  1. 1Read simple programs

    Trace names and values. Branch on an explicit comparison and check the boundary.

    Checkpoint

    Print the right ticket category just below, at, and above each age threshold.

  2. 2Repeat and reuse

    Use loops to process sequences and functions to give small operations clear contracts.

    Checkpoint

    Write a function that totals the even numbers in a small interval and explain its loop.

  3. 3Build a data tool

    Use dictionaries for lookups, lists for ordered records, and narrow exception handlers for expected input errors.

    Checkpoint

    Build a reading log that validates dates and produces a count by category.

  4. 4Verify behavior

    Separate input parsing from core logic. Record expected results for each edge case and debug with a trace.

    Checkpoint

    Show a normal case, an empty case, and an invalid case for each operation in the tool.

  5. 5Build a maintainable package

    Organize modules, parse stored data, and use type hints for shared functions.

    Checkpoint

    Split the reading log into data and reporting modules, then load it from JSON.

  6. 6Work with larger inputs

    Read records as they arrive, manage resources, and measure slow operations before optimizing them.

    Checkpoint

    Read a large log lazily and explain when it is useful to overlap operations that wait for input.

Finish