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

I have a syntax question in Problem Set 8. In the function bruteforceAdvisorHelper() It uses s[WORK] and s[VALUE] in replace of s[0] and s[1]. how can s[WORK] and s[VALUE] be legal? how does python know that s[WORK] == s[1] and s[VALUE] = s[0]

OpenStudy (anonymous):

OOPS nevermind ... My Bad, At the top of the file it has the fallowing VALUE, WORK = 0, 1

OpenStudy (anonymous):

Glad you figured.

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!