On 11/01/13 16:35:10, kwakukwat...@gmail.com 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