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 dtorp
Recipients dtorp
Date 2008-02-18.10:09:26
SpamBayes Score 0.12474237
Marked as misclassified No
Message-id <1203329368.91.0.915653416666.issue2138@psf.upfronthosting.co.za>
In-reply-to
Content
Add a factorial method.  Everybody understands what it means before 
they are out of high school and it comes up all the time in statistics 
and combinatorics.  Ruby has a factorial method and heck even basic 
calculators have a factorial key.

print n.factorial()

Maybe raise ValueError if n is negative.
History
Date User Action Args
2008-02-18 10:09:29dtorpsetspambayes_score: 0.124742 -> 0.12474237
recipients: + dtorp
2008-02-18 10:09:28dtorpsetspambayes_score: 0.124742 -> 0.124742
messageid: <1203329368.91.0.915653416666.issue2138@psf.upfronthosting.co.za>
2008-02-18 10:09:27dtorplinkissue2138 messages
2008-02-18 10:09:27dtorpcreate