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

I am on problem set #9 and need some help. I would like to look at the solution source code. What can I do with the ps9.pyc provided in the solutions?

OpenStudy (anonymous):

I'm not sure that my first question was clear. I would like to know what the ps9.pyc file in the solution set for problem set 9 can be used for? How does this file help us understand the problem? Thanks

OpenStudy (anonymous):

2011 course? a .pyc file has been compiled (bytecode) - i can't read them with a text editor. it's not for you, it is for the python interpreter. http://effbot.org/zone/python-compile.htm

OpenStudy (anonymous):

It seems that they just have attached wrong files. You can't see code of compiled file, so there is no use of it. Writeup seems to be not from the PS9 as well. My code is here: http://dpaste.com/799196/ GreedyAdvisor and bruteForceAdvisor functions work well, I modified others so you will not get them passed using provided test file.

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!