Write an Algorithm to input these ten values and get the average temperature for that day. if the average temperature value is in between 970 Fahrenheit and 990 Fahrenheit then display the message “Your body temperature is normal…”. If it is more than 100.40 Fahrenheit then display the message “You have a fever caused by an infection or illness…”
list1 = []
for i in range(10):
list1.append(int(input('Enter temperature here: ')))
temp = sum(list1)/10
if 970 <= temp <= 990:
print('Your body temperature is normal…')
elif temp >= 1040:
print('You have a fever caused by an infection or illness…”')
Comments
Leave a comment