...

/

Recursion Limits and Tail Recursion

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.

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.

Access this course and 1400+ top-rated courses and projects.