Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find factorial in python

factorial = lambda n: n * factorial(n-1) if n > 1 else 1

print(factorial(3)) # 6 
print(factorial(5)) # 120
 
PREVIOUS NEXT
Tagged: #find #factorial #python
ADD COMMENT
Topic
Name
8+1 =