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.
1Read simple programs
Trace names and values. Branch on an explicit comparison and check the boundary.
CheckpointPrint the right ticket category just below, at, and above each age threshold.
2Repeat and reuse
Use loops to process sequences and functions to give small operations clear contracts.
CheckpointWrite a function that totals the even numbers in a small interval and explain its loop.
3Build a data tool
Use dictionaries for lookups, lists for ordered records, and narrow exception handlers for expected input errors.
CheckpointBuild a reading log that validates dates and produces a count by category.
4Verify behavior
Separate input parsing from core logic. Record expected results for each edge case and debug with a trace.
CheckpointShow a normal case, an empty case, and an invalid case for each operation in the tool.
5Build a maintainable package
Organize modules, parse stored data, and use type hints for shared functions.
CheckpointSplit the reading log into data and reporting modules, then load it from JSON.
6Work with larger inputs
Read records as they arrive, manage resources, and measure slow operations before optimizing them.
CheckpointRead a large log lazily and explain when it is useful to overlap operations that wait for input.