def factorial(x):
    '''This is a Recursive Funtion to find the Factorial of integer'''
    if x==0 or x==1:
        return 1
    else:
        return x*factorial(x-1)
print(factorial.__doc__)
print("The Factorial of 0:",factorial(0)) 
print("The Factorial of 1:",factorial(1))
print("The Factorial of 2:",factorial(2))
print("The Factorial of 5:",factorial(5))
print("The Factorial of 10:",factorial(10))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: