A function can be defined as a block of organized, reusable code that is used to perform a single, related action. Function blocks begin with the keyword def followed by the function name and parentheses ( ( ) ). Any input parameters or arguments are placed within these parentheses.