Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

In problem set 2 hangman, my program was running perfectly last time I checked. I opened it to mess with it some more and now it's telling me "IOError: [Errno 2] No such file or directory: 'words.txt'" which I think means it's not finding the file to get the words out of. It was doing it before but it's not now. Any ideas?

MIT 6.00 Intro Computer Science (OCW)
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
After ascertained that 'words.txt' is in the same directory with your python code. restart the python idle might be a choose :)
Yah, make sure something did not get deleted, then look at where you are starting the program from. Sometimes a path call can be different if you right click and run vs. open python then open file.
Agree with the above comment. Make sure that 'words.txt' is in the same directory as the .py file.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Thanks! I had saved it a different place on accident. :)
That would do it! Have fun.

Not the answer you are looking for?

Search for more explanations.

Ask your own question