7 ms·
> Or just xrange(num) and then, as in my original code, output *= num + 1. :-) HN ate your asterisk(it uses asterisk to mark italics), or something wrong with
by irahul 14y ago
> Or just xrange(num) and then, as in my original code, output *= num + 1. :-)
HN ate your asterisk(it uses asterisk to mark italics), or something wrong with my chrome app for HN. In your post, I saw:
def Factorial(x): output = 1 for i in xrange(x): output = (i + 1) return output