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

PS5 Problem 3. Please help explain why this code isn't passing the test and how it can be improved. http://pastebin.com/ybgg8E9S

OpenStudy (anonymous):

Here it passed the test. Could you paste which of the tests it didn't pass?

OpenStudy (anonymous):

i didn't test it but it looks like it should work. here is a variation for lines 15-22: not necessarily better, just different http://pastebin.com/tQgZdFGC

OpenStudy (anonymous):

@bmp Oh jeeze. I guess I hadn't saved it properly because it just passed when I ran the test. 'rapture' and 'even' weren't passing when I ran it earlier. @bwCA Thanks for the variation. You can learn a lot from them.

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!