Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
import, or reduce(mul, range, 1) solution in Clear category for Number With Exclamation by Phil15
from math import factorial
# or for fun
"""
import functools as fn, operator as op
def factorial(n: int) -> int:
return fn.reduce(op.mul, range(1, n + 1), 1)
"""
Oct. 7, 2023