>>> list = [1, 2, 3] >>> sum(list) 6
def sum_list(array): summation = 0 for x in range(0, len(array)): summation += array[x] return summation