Functions In Python
def factorial(n):
     if n == 0:
         return 1
     else:
         return n * factorial(n-1)
 
if __name__== "__main__":
    a = raw_input("Please Enter a Number ")
    x = factorial(int(a))
    print x
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License