Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 11 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!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 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!