Q. What is recursion?
Answer =
In a program, if a function calls itself (whether directly or indirectly), it is known as recursion. And the function calling itself is called recursive function.
Following are two examples of recursion:
(i)
def A():
A()
(ii)
def B():
C()
def C():
B()
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )