Functions allow programmers to reuse blocks of code by defining functions that can be called from different parts of a program. Functions are blocks of code that are not executed when first defined, but must be explicitly called. This document provides examples of defining a simple function to output a name and a function that calculates the sum of two parameters passed to it.