+ 1
I'm getting a maximum recursion depth error for a function. What does this mean? How can I mitigate the problem?
3 Respuestas
+ 1
It means that you did an infinite recursion. Make sure the recursion always converges towards the base case.
0
Example
def fonk(i):
if len(i)<1:
return i
else :
print(i)
return fonk(i[1:])
print (fonk("anything "))
0
thank you so much friends