What is the missing line of code to have the following output? Isabel Trejo JT23 class cholesterol: low Density = 0 highDensity = 0 class patient: def __init__(self, firstName, lastName, idNum): self.firstName = firstName self.lastName = lastName self.idNum = idNum def_str_(self): return self.firstname + " " + self.lastName + " " + self.idNum. ​

Respuesta :

Answer:

patientA = patient(‘Isabel’,‘Trejo’,’JT23’)

Explanation:

100% on edge

Missing line of codes, when omitted would make a program not run properly.

The missing line of code to display the required output is patientA = patient(‘Isabel’,‘Trejo’,’JT23’)

From the program, we have the following function definition:

def __init__(self, firstName, lastName, idNum)

This means that, the function receives three parameters firstName, lastName and idNum.

So, to print Isabel Trejo and JT23, the three arguments must be passed to the function as: patient(‘Isabel’,‘Trejo’,’JT23’)

Read more about function and classes at:

https://brainly.com/question/16901424

ACCESS MORE
EDU ACCESS