Q. Is it necessary to have a base case in a recursive function? Why/Why not?


Answer =

Yes, it is necessary to have a base case in a recursive function. Because base case is used to stop recursive function. If there is no base case then python give an error.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post