← All challenges
✓ Solved
Sum a list
Add up every number in [4, 8, 15, 16, 23, 42].
🟢 EasyDifficulty
The challenge
Given the numbers [4, 8, 15, 16, 23, 42], print their sum.
🧠 Need a hint? (Python)
Python has a built-in sum() function that takes a list directly: sum(nums).
🚀
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