Function

A function is a block of reusable code used to perform a specific task. It can receive parameters as input and return a result. Functions improve the structure, readability and modularity of a programme.