Answer:
Step-by-step explanation:
We can code this in python:
First, calculate the total temperature by iterating through temps by k
for k in temps:
total += k
Then we can calculate the average by dividing the total by the number of items in the temps array, or the length of array
avgTemp = total / len(temps)