Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions