python faculty of 0 is 1 faculty of 1 is 1 code example
Example 1: python faculty of 0 is 1 faculty of 1 is 1
return 1 if n <=1 else n*factorial(n-1)
Example 2: python faculty of 0 is 1 faculty of 1 is 1
fact = fact * num
return 1 if n <=1 else n*factorial(n-1)
fact = fact * num