**Document 3: Writing Functions in Python**
Functions allow you to reuse code and keep it organized:
1. **Define a Function** – Use `def` keyword.
2. **Parameters and Return Values** – Pass data in and out of functions.
3. **Default Arguments** – Give parameters default values.
4. **Docstrings** – Document your functions using triple quotes.
5. **Scope** – Understand local and global variables.
Functions are essential for writing clean, modular code.