Re: Iteration for Factorials

2007-10-22 Thread Py-Fun
On 22 Oct, 13:43, Marco Mariani <[EMAIL PROTECTED]> wrote: > Py-Fun wrote: > > def itforfact(n): > > while n<100: > > print n > > n+1 > > n = input("Please enter a number below 100") > > You function should probably ret

Re: Iteration for Factorials

2007-10-22 Thread Py-Fun
On 22 Oct, 13:28, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Py-Fun wrote: > > I'm stuck trying to write a function that generates a factorial of a > > number using iteration and not recursion. Any simple ideas would be > > appreciated. > > S

Iteration for Factorials

2007-10-22 Thread Py-Fun
I'm stuck trying to write a function that generates a factorial of a number using iteration and not recursion. Any simple ideas would be appreciated. -- http://mail.python.org/mailman/listinfo/python-list