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

I working ps5....and can't seem to integrate the 'words.txt' file into the script. The directions say I need to enter the COMPLETE path name. But the complete path name uses a colon..which the interpreter doesn't like. So I suppose I need the correct format for storing the variable WORDLIST_FILENAME = ????. as it currently stands(not working): WORDLIST_FILENAME = Python27\Doc\words.txt PLEASE HELP , Cheers

OpenStudy (anonymous):

Have you tried: WORDLIST_FILENAME = "C:\\asdf\\words.txt", or something like that? I think you have to handle it with escape characters, and to input it as a string.

OpenStudy (anonymous):

PERFECT...thanks...worked like a charm!

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!