01. Install Python and understand execution
Observable skill
Starter project with reproducible run command
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Check the Python version and distinguish scripts from interactive mode. create a project folder with a virtual environment.
Guided demonstration
- Check the Python version and distinguish scripts from interactive mode
- create a project folder with a virtual environment
- run an offline first program and record the output
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Starter project with reproducible run command. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
02. Variables, types and strings
Observable skill
Summary script validating input types
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Define task name, priority and duration variables. convert string duration to integer with error handling.
Guided demonstration
- Define task name, priority and duration variables
- convert string duration to integer with error handling
- print a formatted summary and test values
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Summary script validating input types. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
03. Conditions and business rules
Observable skill
Classifier function and three representative tests
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Define new, in_progress and completed statuses. warn when due date is in the past and task is unfinished.
Guided demonstration
- Define new, in_progress and completed statuses
- warn when due date is in the past and task is unfinished
- test today, yesterday and missing-date edge cases
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Classifier function and three representative tests. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
04. Loops and task collections
Observable skill
Status frequency table with consistent total
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Create a list of eight fictional task dictionaries. count tasks by status without mutating input.
Guided demonstration
- Create a list of eight fictional task dictionaries
- count tasks by status without mutating input
- compare manual and automated totals
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Status frequency table with consistent total. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
05. Functions, parameters and returns
Observable skill
Pure function and documented tests
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Write a completion-rate function with type hints and docstring. handle empty input without division by zero.
Guided demonstration
- Write a completion-rate function with type hints and docstring
- handle empty input without division by zero
- provide demo call and two unit tests
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Pure function and documented tests. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
06. Read and write CSV files
Observable skill
CSV report with explicit invalid-data errors
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Load tasks.csv using csv.DictReader and UTF-8. validate required fields and unique IDs.
Guided demonstration
- Load tasks.csv using csv.DictReader and UTF-8
- validate required fields and unique IDs
- generate a report CSV without overwriting source
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : CSV report with explicit invalid-data errors. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
07. Dictionaries, sets and deduplication
Observable skill
Duplicate report with affected rows
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Build a task_id-to-task index. detect duplicate IDs before calculation.
Guided demonstration
- Build a task_id-to-task index
- detect duplicate IDs before calculation
- report duplicates instead of silently dropping them
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Duplicate report with affected rows. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
08. Exceptions, validation and logging
Observable skill
Robust pipeline with understandable error reports
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Validate date format, status and IDs separately. catch ValueError and return a useful message.
Guided demonstration
- Validate date format, status and IDs separately
- catch ValueError and return a useful message
- keep a local log without personal data
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Robust pipeline with understandable error reports. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
09. Modules, project structure and environment
Observable skill
Project structure and execution documentation
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Separate logic into analyse.py and entry point into main.py. guard execution with if __name__ == '__main__'.
Guided demonstration
- Separate logic into analyse.py and entry point into main.py
- guard execution with if __name__ == '__main__'
- document environment, dependencies and test command
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Project structure and execution documentation. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
10. Unit tests and edge cases
Observable skill
Passing test suite and change log
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Write unittest cases for empty list, valid data and duplicate ID. run tests and interpret failures.
Guided demonstration
- Write unittest cases for empty list, valid data and duplicate ID
- run tests and interpret failures
- fix a deliberately inserted bug and retain regression test
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Passing test suite and change log. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
11. Code quality and local safety
Observable skill
Code review listing three documented risks
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Define naming convention and useful type hints. avoid eval and arbitrary execution of external input.
Guided demonstration
- Define naming convention and useful type hints
- avoid eval and arbitrary execution of external input
- validate file paths and avoid publishing sensitive data
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Code review listing three documented risks. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
12. Final project: offline task analyser
Observable skill
Working Python tool with tests and verifiable outputs
Fictional professional case
Fictional exercise: develop a local task and statistics tool without any remote service.
Method and decisions
Read fictional CSV, find duplicates and overdue dates using separate functions. output a text summary without changing source.
Guided demonstration
- Read fictional CSV, find duplicates and overdue dates using separate functions
- output a text summary without changing source
- deliver script, unittest tests, run log and setup guide
Independent exercise
Variation: reproduce the output with an additional input, describe the change, and save editable source files.
Solution and checks
Expected deliverable : Working Python tool with tests and verifiable outputs. Compare the output, failure cases and documented acceptance criteria. Record untested steps.
Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.
