1# Sum the contents of a list without the builtin sum function
2
3list = [1,2,3,4,5]
4sum = 0
5
6# loop through each position of the list and
7# add the contents of each position to the variable, sum
8for i in range(len(list)):
9 sum += list[i]
10
11# result is 1 + 2 + 3 + 4 + 5 = 15
12print(sum)