Web Analytics

Python math.factorial() Method

Mathโ€ขFactorial

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