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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started