def total(numbers)sum_so_far for number in numberssum_so_far +number return sum_so_far print(total([ ])the list we want to add up we use this function we have defined in exactly the same way as we would use function provided by python