Answer to Question #119118 in Python for tyler

Question #119118
how do you write a program that creates an array called temperatures and then add five temperatures input from the keyboard. Then, print the array.
1
Expert's answer
2020-05-31T16:04:51-0400
temperatures = []
print('Input 5 temperatures')
for i in range(5):
    temperatures.append(float(input()))
print('temperatures:',temperatures)

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