Computers and Technology, 05.02.2020 21:42, MaeWolfe
Given a variable temps that refers to a list, all of whose elements refer to values of type float , representing temperature data, compute the average temperature and assign it to a variable named avg_temp . besides temps and avg_temp , you may use two othervariables -- k and total .
my solution below didn't work. i wonder how to go about this problem.
temps = []
avg_temp = 0.0
total = 0.0
for k in range(temps):
total += k
avg_temp = total/len(temps)
Answers: 3
Computers and Technology, 24.06.2019 08:00, nataliamontirl4230
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
Computers and Technology, 24.06.2019 22:30, toricepeda82
What are the 4 basic items that are traded throughout the world?
Answers: 1
Given a variable temps that refers to a list, all of whose elements refer to values of type float ,...
History, 10.03.2021 16:50
Health, 10.03.2021 16:50
Mathematics, 10.03.2021 16:50
Mathematics, 10.03.2021 16:50
English, 10.03.2021 16:50
Chemistry, 10.03.2021 16:50