Recursion in Python: An Introduction
![](https://www.deeplearningdaily.com/wp-content/uploads/2021/05/recursion-in-python-an-introduction_60997203c3a5f-375x210.jpeg)
If you’re familiar with functions in Python, then you know that it’s quite common for one function to call another. In Python, it’s also possible for a function to call itself! A function that calls itself is said to be recursive, and the technique of employing a recursive function is called recursion.
It may seem peculiar for a function to call itself, but many types of programming problems are best expressed recursively. When you bump up against such a problem, recursion is an indispensable tool for you to have in your toolkit.
By the end of this tutorial, you’ll understand:
- What it means for a function to call itself recursively
- How the design of Python functions supports recursion