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?
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
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
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.
Join our real-time social learning platform and learn together with your friends!