Answers for "print('Factorial of'+i+'is'+factorial(i))"

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

Python Answers by Framework

Browse Popular Code Answers by Language