Question #101867

Write a program that asks the user to enter ten temperatures and then finds the sum. The input temperatures should allow for decimal values.

Expert's answer

temperatures = []

for i in range (10):

temperatures.append(float (input ("Enter temperature:")))


sum = 0

for temperature in temperatures:

sum+= temperature


print ("sum={0}". format (sum))




LATEST TUTORIALS
APPROVED BY CLIENTS