Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

ReindeerGames Group Title

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?

  • 10 months ago
  • 10 months ago

  • This Question is Open
  1. 6.00_learner Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    After ascertained that 'words.txt' is in the same directory with your python code. restart the python idle might be a choose :)

    • 10 months ago
  2. e.mccormick Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 10 months ago
  3. Richard_C Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Agree with the above comment. Make sure that 'words.txt' is in the same directory as the .py file.

    • 10 months ago
  4. ReindeerGames Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks! I had saved it a different place on accident. :)

    • 10 months ago
  5. e.mccormick Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    That would do it! Have fun.

    • 10 months ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.