The default recursion limit in python in 3000 as per the below code:
import sys
sys.getrecursionlimit()
So when I run the following code, why is it printing 2954 as the last value before RecursionError and not 3000?
def increment(num):
print(num, end=" ")
increment(num+1)
Last value should have been 3000.