👉 A function is a mathematical expression that takes one or more input values and produces an output value. It can be used to perform operations on numbers, such as addition, subtraction, multiplication, division, exponentiation, etc., as well as other functions like trigonometric, logarithmic, exponential, and much more.