How do I make a function to calculate a factorial without recursion? [duplicate]

0
def fatorial(n):
    if n <= 1:
        return 1
    else:
        return n * fatorial(n - 1)

I would like to know if I can consider this without recursion, I did not quite understand how recursion is and how to do a function that calculates factorial without using.

    
asked by anonymous 19.09.2018 / 13:56

0 answers