medium
Code Logic Explainer
Explains the functionality and logic of a specific code snippet in plain English.
📝 Prompt İçeriği
Explain what the following Python code does step-by-step: def factorial(n): if n == 0: return 1 else: return n * factorial(n-1). Break it down for a beginner programmer who is just learning about recursion.