Concept Flow - sum() function
Start with iterable
Initialize total = 0
Take next item from iterable
Add item to total
More items?
Yes→Repeat add
No
Return total sum
The sum() function adds each item in a list (or any iterable) one by one, starting from zero, and returns the total.