Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

6.00SC Pset 8 Specification Error? Each ResistantVirus instance in the viruses list should be initialized with the following parameters: • resistances , The virus’s genetic resistance to drugs in the experiment = {guttagonol:False} def reproduce(self, popDensity, activeDrugs): """ If the virus particle is not resistant to any drug in activeDrugs, then it does not reproduce. So, the model instantiates every ResistantVirus with no resistances and then the reproduce method never lets the Viruses reproduce. This can't be intended.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!