I have a problem with ps8 for 2011 OCW. Cant figure out what Im doing wrong and the solution on the MIT website is incomplete. If anyone has the code for it, could you share it, please? My code is here if you want to see it: http://codepad.org/T9MLDJUe
it says it can't find numpy i suppose it's insulting to ask if you've got numpy installed, so i won't.
well, obviously it cant find numpy because the file is on codepad and not on my computer. The problem is in the code itself - specifically the mutation of one ResistantVirus instance seems to affect all other instances. I was asking for someone else's code because I would need to clean up my own code too much in order to make it fully legible to somebody else and also it imports from another .py file. Have you solved that problem, snark?
what's the name of this course? curious..... you seem to give patient 100 copies of the same virus object - 100*[object] - i think you want to give him/her 100 different virus objects - for i in range(100): viruses.append(resistantvirus(X)) this will create 100 distinct resistant objects.
Join our real-time social learning platform and learn together with your friends!