$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #72

Fill in the recursive step.

def fact(n):
    return 1 if n <= 1 else n * fact(n - ____)

Answer: 1 (also accepted: 1)

Each call shrinks n by one until the base case.
Play Problem Solving ▸