Question: In Python def main(): print('This program determines whether you have hypertension.') systolic_pressure = float(input('Enter your systolic pressure: ')) diastolic_pressure = float(input('Enter your diastolic pressure: '))
In Python
def main():
print('This program determines whether you have hypertension.')
systolic_pressure = float(input('Enter your systolic pressure: '))
diastolic_pressure = float(input('Enter your diastolic pressure: '))
# insert statement here to call the hypertension_tester function
def hypertension_tester(dp, sp):
if sp >= 140 or dp >= 90:
print('You have hypertension')
else:
print('You do not have hypertension')
main()
A person has hypertension if systolic pressure is 140 or above or diastolic pressure is 90 or above. Which of the following statements correctly calls the hypertension_tester function?
| A. | hypertension_tester(systolic_pressure, diastolic_pressure)
| |
| B | hypertension_tester(sp = systolic_pressure, dp = diastolic_pressure) | |
| C. | Both (a) and (b) are correct | |
| D. | Both (a) and (b) are incorrect |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
