Skip to content

4.1 Function Basics

Functions are blocks of code that perform a specific task.
They allow programs to reuse logic instead of repeating the same code multiple times.

This section introduces how functions are defined, how they accept input, and how they return results.