Python Function Reference

math.factorial
Return the factorial of x.
Python 3.13
math.factorial(x)
x
A non-negative integer.
Examples
Python 3.13
>>> import math
>>> math.factorial(5)
120