Recursive Functions
Recursive Functions in python
def factorial_example(n):
if n == 1:
return 1
else:
return (n * factorial_example(n-1))
factorial_example(5)Last updated
def factorial_example(n):
if n == 1:
return 1
else:
return (n * factorial_example(n-1))
factorial_example(5)Last updated