w3resource
w3resource logo
Python Exercises

Python: Get the current value of the recursion limit

Python Basic: Exercise-80 with Solution

Write a Python program to get the current value of the recursion limit.

Sample Solution:-

Python Code:

import sys
print()
print("Current value of the recursion limit:")
print(sys.getrecursionlimit())
print()

Sample Output:

Current value of the recursion limit:                                                                         
1000

Python Code Editor:

 

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a Python program to get the size of an object in bytes.
Next: Write a Python program to concatenate N strings.