Explanation: The self-contained block of code that performs a particular task. It take inputs (parameters), execute a set of instructions and return an output.