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.

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS