Westonci.ca is the ultimate Q&A platform, offering detailed and reliable answers from a knowledgeable community. Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

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: