Understanding Recursive Functions with Python
Introduction When we think about repeating a task, we usually think about the for and while loops. These constructs allow us to perform iteration over a list, collection, etc. However, there’s another form of repeating a task, in a slightly different manner. By calling a function within itself, to solve a smaller instance of the same problem, we’re performing recursion. These functions call themselves until the problem is solved, practically dividing the initial problem to a lot of smaller instances […]
Read more