Â
In this we are going to see a basic example to Find the Factorial in Python - Type 4 of Functions in Python Programming Language.
def factorial(n):
if n == 1:
return 1
else:
return n * factorial(n-1)
x = factorial(5)
print(x)
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP