Posts by Vitor Lopes • 21 points
1 post
-
2
votes3
answers23189
viewsA: Recursive and iterative function that calculates the factorial from 1 to n
I clicked on the site to evaluate any solution, after thinking for a moment, I formulated functions that I find more efficient. (In python 2.x and 3.x) for factorial of x: def fatorial(x): result=1…