Recursion Limits and Tail Recursion
Let’s learn about the limitations of recursion in Python. Additionally, we’ll also look at the concept of tail recursion.
We'll cover the following
Multiple function calls
Recursion is relatively inefficient compared to looping. This is because each step in a recursion results in a function call, whereas each step in a loop merely requires a “jump” to a different place in the code.
Get hands-on with 1400+ tech skills courses.