What goes in the blank?
def fact(n):
if n <= 1:
return 1
return n * ____(n - 1)
Answer: fact
The function calls itself on a smaller input — that is the recursion.
Play Problem Solving ▸
def fact(n):
if n <= 1:
return 1
return n * ____(n - 1)
Answer: fact