This uses Wayne Scott's work from Useless Python.
You may also want to see this fast factorial utility which is more efficient and can handle larger numbers.
Utility Mill is another wonderful Blended Technologies project.
copyright, owned and operated by Blended Technologies LLC.
Powered by Python and the ineffable Web.py