python default recursion limit code example
Example 1: increase limit of recusrion python
import sys
sys.setrecursionlimit(4000)
Example 2: set recursion limit python
import sys
sys.setrecursionlimit(10**6)
import sys
sys.setrecursionlimit(4000)
import sys
sys.setrecursionlimit(10**6)