Question: These questions relate to Python code. 1 . Which of the following conditions will correctly test if a blood glucose level is within the normal

These questions relate to Python code.
1. Which of the following conditions will correctly test if a blood glucose level is within the normal range? The normal range is between 61 mg/dL and 125 mg/dL (Select ALL that apply.)
a. if units ==mg/dL and 61>= value <=125 or units ==mmol/L and 61/18<= value <=125/18
b. if units ==mg/dL and value <=125 and >=61 or units ==mmol/L and value <=125/18 and >=61/18
c. if (units ==mg/dL and value <=125 and value >=61) or (units ==mmol/L and value <=125/18 and value >=61/18)
d. if units ==mg/dL and value <=125 and value >=61 or units ==mmol/L and value <=125/18 and value >=61/18
2. Given a Python list of string data of the form 73 mg/dL, which of the following Python code would extract the number for you (i.e.73)?(Select ALL that apply.)
a. number = data.getdecimal()
b. parts = data.split()
number = int(parts[0])
c. number = int(data[0])
d.(num, space, unit)= data.partition()
number = int(num)
3. Which of the following statements about lists is true?
a. Lists can contain mixed types of data.
b. Lists can be created by putting comma separated values inside of parenthesis ().
c. Lists are immutable.
d. A tuple and a list are two names for the same Python type.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!