Fortuneiyke's Posts
Nairaland Forum › Fortuneiyke's Profile › Fortuneiyke's Posts
1 (of 1 pages)
Please i'm getting an error running script, who has any idea where the problem could be from? |
I got that but what is wrong with this iterative_factorial(n) def iterative_factorial(n): factor = 1 if n == 0: return factor while n > 0: factor *= n n -= 1 return factor |
someone please help, i'm a kinda stuck on this recursive lab. please how do i really use the iterative function |
1 (of 1 pages)