Concept lecture
Worked scenario · runnable Python
Predict the output first. Download or copy the example, run it, then change one input and explain the effect.
Expected result and explanation check
Trace inputs → transformations → output. Explain the purpose of every line and identify which lines would change for a different business rule.
Your independent scenario task
Check your understanding
- Explain today's main concept in your own words, using the scenario.
- Predict the example's output before running and compare with the expected result.
- Change one relevant input or boundary; describe the result you expect and verify it.
Score rubric · 100 points, pass at 80
Self-assessment is not automatic code grading. Keep evidence in your notes. For each category use 0 = not attempted, 10 = substantial help or errors, 20 = mostly independent with a minor gap, 25 = independent and correct.
- Correctness (25): exercise meets the stated business requirement and expected checks.
- Edge cases (25): tests at least two relevant cases, such as missing input, zero, duplicates, an empty collection, or boundary values.
- Explanation (25): explains the concept, each important line and a limitation.
- Reproducibility (25): saves runnable work and enough instructions/evidence to reproduce the result. For written tasks, saves a complete, evidence-based artifact.
Do not award a checkpoint pass for copied code or an unrun project. If a required artifact is missing, record the gap and revisit it.