- Explain package layout and reusable code.
- Apply today's ideas in a small Python program.
- Inspect output and improve the program after a test run.
- package layout
- reusable code
- error paths
- code review
Demonstrate a student system split into focused files. Review imports, function names, and error paths. Explain how a future class or API could reuse the business rules.
Before coding, describe the input, processing, and output in ordinary language. Run the smallest possible version, then extend it one change at a time. Read the error message before asking for help.
from grades import calculate_grade
print(calculate_grade(50))Trace one request from input through a function to output.
Review a peer's modules for one duplicated responsibility.
Submit the modular student management system.
The programme imports modules and handles an invalid score.
Write a README with folder layout and run steps.
- Official Python documentation
- Week resources
- Relevant retained examples in the repository, where referenced above