← All challenges
✓ Solved
Factorial
Compute 5! (5 factorial) with a loop or recursion.
🟢 EasyDifficulty
The challenge
Print the factorial of 5 (that's 5 × 4 × 3 × 2 × 1).
🧠 Need a hint? (Python)
Start a result variable at 1, then multiply it by every number from 1 up to n in a loop (range(1, n + 1)).
🚀
Like solving these?
Structured courses, hands-on exercises, and real multi-file projects are waiting -- your first project unlock is free.
Create a free account