Defining a Recursive Function
In this lesson, you’ll learn that all recursive functions have two parts:
- Recursive case
- Base case
You’ll also see how to define the factorial symbol recursively:
def factorial_recursive(n): if n <= 1: return 1 return n * factorial_recursive(n - 1)
Become a Member to join the conversation.