menu_book Course Curriculum (Intro to Programming) expand_more
Core Concepts
Data Structures
Problem Solving
Recursion
Learn Recursion in Intro to Programming with a focused explanation, a topic-specific example, and a mastery check.
12 min read
•
Intermediate
intro-programming-024.py
python
def factorial(n): return 1 if n<=1 else n*factorial(n-1)
print(factorial(5))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content