News for hackers. Stuff that matters.
Re:Why I Use Perl: Reliability by afc on Wednesday May 30, 2012 @05:04AM (#4042018)
> Yes. That makes my Python example incorrect(should be xrange(2, num + 1))

Or just xrange(num) and then, as in my original code, output *= num + 1. :-)

Re:Why I Use Perl: Reliability by irahul on Wednesday May 30, 2012 @10:57AM (#4043084)
> 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