Audience: beginners learning to organize code.

Learning goal: explain why programs are split into modules and functions.

Modularity separates code into reusable parts. Functions and modules keep responsibilities clear and reduce duplication.

Check for understanding: How does modularity make programs easier to maintain?