This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author uzi
Recipients ajaksu2, alanmcintyre, avalind, dtorp, ilan, jafo, mark.dickinson, phr, rhettinger, terry.reedy, uzi
Date 2008-05-31.10:33:31
SpamBayes Score 0.051904727
Marked as misclassified No
Message-id <1212230014.09.0.0274904920507.issue2138@psf.upfronthosting.co.za>
In-reply-to
Content
It's a simplified version, but why not something like this:

import operator
def factorial(num):
    return reduce(operator.mul, range(1, num+1))

A product() function could also be done similarly.
History
Date User Action Args
2008-05-31 10:33:34uzisetspambayes_score: 0.0519047 -> 0.051904727
recipients: + uzi, rhettinger, terry.reedy, jafo, phr, mark.dickinson, dtorp, alanmcintyre, ajaksu2, avalind, ilan
2008-05-31 10:33:34uzisetspambayes_score: 0.0519047 -> 0.0519047
messageid: <1212230014.09.0.0274904920507.issue2138@psf.upfronthosting.co.za>
2008-05-31 10:33:33uzilinkissue2138 messages
2008-05-31 10:33:32uzicreate