Basic factorial python
def factorial(n):
'''
Fuctorial function
'''
if n == 1:
return n
else:
return n * factorial(n-1)
Basic factorial python
def factorial(n):
'''
Fuctorial function
'''
if n == 1:
return n
else:
return n * factorial(n-1)