195k views
18 votes
8.2 code practice edhesive?

User Oxald
by
4.1k points

1 Answer

8 votes

Answer:

temperatures = []

i = 0

while i < 5:

try:

t = int(input('Enter a temperature: '))

temperatures.append(t)

i += 1

except ValueError:

print('Enter a number')

print(temperatures)

Step-by-step explanation:

Hope this helps!

User Sawel
by
4.3k points