English

How recursive function works?

Advertisements

Question

How recursive function works?

Short/Brief Note
Advertisements

Solution

  1. A recursive function is called by some external code.
  2. If the base condition is met then the program gives meaningful output and exits.
  3. 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?
Chapter 7: Python functions - Evaluation [Page 113]
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×