In this tutorial you will learn:
Recursive Functions in Python
These functions call themselves within the function but need a base case to stop the recursion otherwise it would call it self indefinitely. So a base case defines a condition which returns a base value of the function and it allows us to calculate the next value which intern would be used to calculate the next value until we reach to the top most call off the function.
Example:
print("Output Result") num
Add new comment