Answers for "give the factorials of 6 in python"

0

give the factorials of 6 in python

def factorial(x):
  if x == 0:
    return 1
  return x * factorial(x - 1)

result = factorial(6)
print(result)
Posted by: Guest on April-04-2022

Code answers related to "give the factorials of 6 in python"

Python Answers by Framework

Browse Popular Code Answers by Language