Answers for "3. Write a Python program to find the factorial value of any number entered through the keyboard"

2

Find faculty of a number python

#Assumes n is possitive
def factorial(n):
  return 1 if n <=1 else n*factorial(n-1)
Posted by: Guest on November-05-2020
5

factorial in python

def fact(n):
  return 1 if (n==0 or n==1) else n*fact(n-1)
fact(3)
Posted by: Guest on August-07-2020

Code answers related to "3. Write a Python program to find the factorial value of any number entered through the keyboard"

Python Answers by Framework

Browse Popular Code Answers by Language