To find the Factorial of a number.

def factorial(n):

if n==1:

return n

else:

return n + factorial(n-1)