4 lines
86 B
Python
4 lines
86 B
Python
from numpy import prod
|
|
|
|
def factorial(n):
|
|
return prod(range(1, n + 1), dtype=int)
|