<prompt> Andika kazi ambayo mahesabu jumla ya idadi katika safu fulani1, 7, 4, -2, 9  <response>: pythondef sum_of_numbersarray: total_sum 0 for num in array: total_sum num return total_sum Test the function with the given inputinput_array 1, 7, 4, -2, 9result sum_of_numbersinput_arrayprintresult 19 