Factorials using python.
Mathematics and python.
Date Created:Friday March 09th, 2007 09:38 AM
Date Modified:Saturday August 02nd, 2008 03:32 PM
def fact(x):
result = 1
while x > 1:
result *= x
x -= 1
return result
Downloads:
Download: factorial.py 107 B
Please login or Click Here to register for downloads
Factorial by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
