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

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

OpenStudy (anonymous):

it says it can't find numpy i suppose it's insulting to ask if you've got numpy installed, so i won't.

OpenStudy (anonymous):

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?

OpenStudy (anonymous):

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.

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!
Latest Questions
Breathless: Spooky witch but cute
6 hours ago 3 Replies 0 Medals
Arriyanalol: help
6 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
9 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
9 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
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!