Functions are the building blocks of readable, maintainable, and reusable code . A function is a set of statements to perform a specific task. Functions organize the program into logical blocks of code. Once defined, functions may be called to access code. This makes the code reusable.