Whose Error Is It?

Python printed this

RecursionError: maximum recursion depth exceeded
What it meansA function called itself, directly or indirectly, more times than Python's call stack limit allows, which defaults to about 1000 frames.
The first thing to checkCheck that your recursive function has a reachable base case that stops it; if the depth is legitimately large, rewrite it as a loop instead.

More from Python

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar