Advertisements
Advertisements
Question
How recursive function works?
Short Note
Solution
- A recursive function is called by some external code.
- If the base condition is met then the program gives meaningful output and exits.
- Otherwise, the function does some required processing and then calls itself to continue recursion.
shaalaa.com
Python Recursive Functions
Is there an error in this question or solution?