Occurs when a recursive function does not have a proper base case and keeps calling itself indefinitely.
def recursive_function():
return recursive_function()
recursive_function()RecursionError: maximum recursion depth exceeded
def recursive_function(n):
if n <= 0:
return 0
return recursive_function(n - 1)
print(recursive_function(5))Forgot to add a base case, so the function kept calling itself until Python stopped it.