6.00.2x-pset3.py
def addPrescription(self, newDrug):
        """
        Administer a drug to this patient. After a prescription is added, the
        drug acts on the virus population for all subsequent time steps. If the
        newDrug is already prescribed to this patient, the method has no
        effect.

        newDrug: The name of the drug to administer to the patient (a string).

        postcondition: The list of drugs being administered to a patient is
        updated.
        """
        if newDrug not in self.getPrescriptions():
            self.prescriptions.append(newDrug)

        Administer a drug to this patient. After a prescription is added, the
        drug acts on the virus population for all subsequent time steps. If the
        newDrug is already prescribed to this patient, the method has no
        effect.

        newDrug: The name of the drug to administer to the patient (a string).

        postcondition: The list of drugs being administered to a patient is
        updated.
        
Administer a drug to this patient. After a prescription is added, the
drug acts on the virus population for all subsequent time steps. If the
newDrug is already prescribed to this patient, the method has no
effect.

The name of the drug to administer to the patient (a string).

The list of drugs being administered to a patient is
updated.
Administer a drug to this patient . After a prescription is added the drug acts on the virus population for all subsequent time steps . If the newDrug is already prescribed to this patient the method has no effect . The name of the drug to administer to the patient ( a string ) . The list of drugs being administered to a patient is updated .
def addPrescription(self, newDrug):
        if newDrug not in self.getPrescriptions():
            self.prescriptions.append(newDrug)
def addPrescription ( self , newDrug ) : if newDrug not in self . getPrescriptions ( ) : self . prescriptions . append ( newDrug )
Administer a drug to this patient.
Administer a drug to this patient .
"""
        Administer a drug to this patient. After a prescription is added, the
        drug acts on the virus population for all subsequent time steps. If the
        newDrug is already prescribed to this patient, the method has no
        effect.

        newDrug: The name of the drug to administer to the patient (a string).

        postcondition: The list of drugs being administered to a patient is
        updated.
        """
self
newDrug