Answers for "how to calculate n factorial in python"

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

Code answers related to "how to calculate n factorial in python"

Python Answers by Framework

Browse Popular Code Answers by Language