Lab 07: Functions¶
Goal¶
Refactor repeated logic into named functions.
Practice Tasks¶
- Write one function that computes a value.
- Write one function that prints a formatted result.
- Call each function from a short main section.
Check Yourself¶
Can each function be described in one sentence?