Lurker News
Back to discussion

Comment by messe

messe1 reply#
Not only that but in python 3.8, it can be written:

    def factorial(n):
        return math.prod(range(1,n+1))
estomagordo#
Nice!