You probably know a sort-of universal way of finding the sum of elements in a list is pretty much all programming languages out there:
Iterate through a list of elements and then keep on adding the value of that element to a variable in which you have initialized before the start of the iteration.
Continue reading