Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

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: