Source Code:
(back to article)
numbers = [1, 2, 3, 4, 5] total = 0 for num in numbers: total += num print(total)
Result:
Report an issue