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

In Problem set 2 number 4 "A Wordgame Hangman", how do I import words.txt to my hangman game? Every time I run my hangman program I get an error message of "No such file or directory: 'words.txt' ". When I click on the downloaded words.txt file it opens in TextEditor. Isn't it suppose to open in Python? and how do I make it do that so I can access the word bank?

OpenStudy (anonymous):

It has to be in the same folder as your python code :)

OpenStudy (anonymous):

Thank you!

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!