Skip to content

8140171224/Recursion-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Recursion-Python

Recursion in Python

importing sys for increasing recursionlimit

import sys

This will set limit (2000)

sys.setrecursionlimit(2000)

For cheaking recursionlimit

print(sys.getrecursionlimit())  

Just for count the recursion

i = 0

define function greed():

def greet():
global i
i+=1
print('Hello', i)
greet()

Calling function

greet()

Here I'm

Information

BY aakashpadhiyar

8140171224