Python math.factorial() Method
The math.factorial() method returns the factorial of a number.
Syntax
math.factorial(x)
Return Value
x! (x factorial).
Example
Output
Click Run to execute your code