+ 1

I'm getting a maximum recursion depth error for a function. What does this mean? How can I mitigate the problem?

13th Sep 2016, 3:03 AM
Gurtej Singh
Gurtej Singh - avatar
3 ответов
+ 1
It means that you did an infinite recursion. Make sure the recursion always converges towards the base case.
13th Sep 2016, 9:22 AM
Zen
Zen - avatar
0
Example def fonk(i): if len(i)<1: return i else : print(i) return fonk(i[1:]) print (fonk("anything "))
13th Sep 2016, 3:20 AM
Özgür Bildik
Özgür Bildik - avatar
0
thank you so much friends
21st Jul 2017, 8:54 AM
Gurtej Singh
Gurtej Singh - avatar