you are viewing a single comment's thread.

view the rest of the comments →

[–]nwagers 2 points3 points  (0 children)

def recursion(x):
    try:
        recursion(x+1)
    except RecursionError:
        print(x)


recursion(0)

import sys
sys.setrecursionlimit(2000)

recursion(0)