English

What is the base condition in recursive function?

Advertisements

Question

What is the base condition in recursive function?

Short/Brief Note
Advertisements

Solution

The condition that is applied in any recursive function is known as a base condition. A base condition is a must in every recursive function otherwise it will continue to execute like an infinite loop.

shaalaa.com
Python Recursive Functions
  Is there an error in this question or solution?
Chapter 7: Python functions - Evaluation [Page 112]
Advertisements
Share
Notifications



      Forgot password?
Use app×