fatorial python code example
Example: Find faculty of a number python
#Assumes n is possitive
def factorial(n):
return 1 if n <=1 else n*factorial(n-1)
#Assumes n is possitive
def factorial(n):
return 1 if n <=1 else n*factorial(n-1)