8
What is the output of the following code?
def fact(n):
return 1 if n <= 1 else n * fact(n - 1)
print(fact(5))Easy
What is the output of the following code?
def fact(n):
return 1 if n <= 1 else n * fact(n - 1)
print(fact(5))Log in to join the discussion.