Question: Assume the variable temps has been assigned a list that contains floating-point values representing temperatures. Write code that calculates the average temperature and assign it
Assume the variable temps has been assigned a list that contains floating-point values representing temperatures. Write code that calculates the average temperature and assign it to a variable named avg_temp. Besides temps and avg_temp, you may use two other variables -- k and total.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
