Skip to main content
Logo image

Chapter 12 Functions and Recursion

Functions present a way to organize your code so that you can execute certain parts of your code multiple times or perform recurring tasks with different input parameters. In this chapter, we’ll cover the following topics:
  • Functions with one or more input arguments
  • Returning a value from a function
  • Recursive functions