$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #247

What goes in the blank?

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

Answer: fact (also accepted: fact, fact())

The function calls itself on a smaller input — that is the recursion.
Play Problem Solving ▸