Answer to Question #101867 in Python for Kylie Willis-Bixby

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.
1
Expert's answer
2020-01-28T06:16:27-0500

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))




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS