Answer to Question #275631 in Python for amish

Question #275631

input ten values and get the average temperature for that day. if the average temperature value is in between 970Fahrenheit and 990 Fahrenheit then display the message “Your body temperature is normal…”. If it is more than 104.0 Fahrenheit then display the message “You have a fever caused by an infection or illness…


1
Expert's answer
2021-12-04T20:47:44-0500
line = input("Get temperature values: ")
temps = [float(s) for s in line.split()]
avg_temp = sum(temps) / len(temps)
print(f'You average temperature is {avg_temp:6.2f} F')
if 97 <= avg_temp <= 99:
    print('Your body temperature is normal…')
if avg_temp > 104:
    print('You have a fever caused by an infection or illness…')

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