medium
Explain Python Code
Break down a Python function for beginners.
📝 Promptens innehåll
Explain the following Python code snippet to a beginner programmer. Describe what each part does and how the function works overall: def factorial(n): return 1 if n == 0 else n * factorial(n-1)