Computer Science, asked by pothnagari4117, 9 months ago

Write a python program to check medical condition of user based on the followings A] body temperature B] Travel details

Answers

Answered by ArmaanBarak1604
3

Answer:

The code:

Explanation:

body_temp = float(input('Enter your temperature in fahrenheit: '))

travel = bool(input('Enter True if you travelled recently else False: '))

if travel and body_temp > 98.6:

print('Case Serious')

elif travel and body_temp <= 98.6:

print('Case Minor')

elif not(travel) and body_temp > 98.6:

print('Fever')

else:

print('No action required')

You can change the string in the input and print statements as per your need. The logic is simple to understand and change if you want. Thank You.

Similar questions