On 11/01/13 16:35:10, [email protected] wrote: > def factorial(n): > if n<2: > return 1 > f = 1 > while n>= 2: > f *= n > f -= 1
U think this line should have been:
n -= 1
> return f
Hope this helps,
-- HansM
--
http://mail.python.org/mailman/listinfo/python-list
