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

lopus

HANGMAN http://dpaste.com/791584/ was very difficult to do this I found a lot of trouble to make everything a string. I would like them to watch and advise me or corrijieran. I also would like to see your code. thanks guys

  • one year ago
  • one year ago

  • This Question is Closed
  1. ArtemF
    Best Response
    You've already chosen the best response.
    Medals 1

    I am attaching an example, without using lists. Many useful functions are available if you write "help(str)" in IDLE. Python help is very useful as well.

    • one year ago
    1 Attachment
  2. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    http://dpaste.com/792336/

    • one year ago
  3. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    http://dpaste.com/792352/

    • one year ago
  4. Odessa
    Best Response
    You've already chosen the best response.
    Medals 0

    Please find attached my version of hangman. All comments highly appreciated.

    • one year ago
    1 Attachment
  5. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    so both of you need to look at your load_words function. i think they only load one word. the readline() method only reads one line.

    • one year ago
  6. Odessa
    Best Response
    You've already chosen the best response.
    Medals 0

    My load_words function, same as yours, absolutely no difference. In the solution provided by Niki, she uses string.lowercase constant, but it didn't work for me because the value is locale-dependent!

    • one year ago
  7. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    when I run your load_words(), it only reads the first line of the text file. do you experience something different? i'm not the OP. my load_words() is different - http://dpaste.com/792889/

    • one year ago
  8. Odessa
    Best Response
    You've already chosen the best response.
    Medals 0

    I get the following message:"Loading word list from file... 55900 words loaded."

    • one year ago
  9. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    ok, sorry - wrong words.txt - the one in ps2 is a single line

    • one year ago
  10. lopus
    Best Response
    You've already chosen the best response.
    Medals 1

    everybody many thanks. this the final code http://dpaste.com/793342/

    • one year ago
  11. xilinix
    Best Response
    You've already chosen the best response.
    Medals 0

    is most simple to undestand your code

    • one year ago
  12. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

    http://dpaste.com/793942/

    • one year ago
  13. lopus
    Best Response
    You've already chosen the best response.
    Medals 1

    men thanks a lot

    • one year 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.