Reusable Code

Function

A function is a named, reusable block of code that performs a specific task. Instead of writing the same instructions over and over, you give them a name and call that name whenever you need them.

Built-in functions#

Programming languages come with a set of built-in functions that are ready to use. They cover common tasks like displaying text, reading input, or performing calculations. You don’t need to know how they work inside — just how to call them.