IDNLearn.com offers a user-friendly platform for finding and sharing answers. Discover in-depth answers from knowledgeable professionals, providing you with the information you need.

g Write a recursive program that causes the program to crash. How calls does it take before it crashes

Sagot :

Answer:

Every recursive function must have a base condition that stops the recursion or else the function calls itself infinitely. The Python interpreter limits the depths of recursion to help avoid infinite recursions, resulting in stack overflows. By default, the maximum depth of recursion is 1000 .

Explanation: