You can find factorial by many ways. Either you use "math" module or write a complete function. For example: Calcuating the factorial of number 5
import math
print(math.factorial(5))
OR
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
factorial(5)
Output - 120