At the end of this lesson, you will be able to:
# Created by: Mr. Coxall# Created on: Sep 2016# Created for: ICS3U# This program, creates an array, passes it to a function that finds its sumdef sum_array(array_numbers = []): # finds the sum of all the numbers in the array array_sum = 0 for a_value in array_numbers: array_sum = array_sum + a_value return array_sumthe_array = [5,7,3,9,2,8]the_total = sum_array(the_array)print(the_total)