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

In the "Word Game" assignment the program accesses a separate file for the word list. It appears that Python has changed the way it handles this for the new version ("can't have unbuffered test I/O" error) - is there a quick fix so I don't have to reinstall an older version of Python?

OpenStudy (anonymous):

Sorry i can't help you on your question, but I was wondering after what lecture I should do this assignment? (Don't say look at the calander, it has not proved completely right).

OpenStudy (anonymous):

If you look at the documentation for 3.x you should be able to find it. Which statement did it choke on? Should be able to make it work with 3.x.

OpenStudy (anonymous):

try inFile = open(WORDLIST_FILENAME, 'rb', 0) it worked for a guy a few weeks ago

OpenStudy (anonymous):

@joz - you should probably get through at least lecture 7 since that has dictionaries and you definitely need to be able to work with them. I just finished the assignment and I'm about to watch lecture 10 @bwCA and Nessman - I ended up using the 'rb' instead of the 'r' in the open command and that helped, but then I had a list of words like this: b'word', b'words', b'worm',... so I had to trim the first two and the last characters from each word in the list before the final assignment. Thanks for the help.

OpenStudy (anonymous):

Thanks user1234567, that means I should go ahead with it soon :)

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!