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

Hi! a small problem in pset 8 2011 (that i think i should be able to figure out for myself...); how do I first iterate over ALL the drugs, and then, if the virus resistant to all of them, go on with the reproduction? I have (which i suppose is wrong...) for drug in activeDrugs: if not self.isResistantTo(drug): pass What was it the "pass" command did? pass the whole method, the loop, or just the particular iteration? Can't find in the docs. Help?

OpenStudy (anonymous):

Trying a while loop in the for loop: while isResistantTo(drug): if random.random and so on.. What do you say about that?

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!