Definition: A function is a named block of code that performs a specific task. It takes input arguments, performs operations, and optionally returns a result. Purpose: Functions promote code ...