PythonNumbermath.factorial
math.degrees

math.factorialNumber

math.gcd

Returns the factorial of n.

문법

math.factorial(n)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

import
math
print
factorial
import math
print(math.factorial(5))   # 120
print(math.factorial(0))   # 1