Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

susantpatra

  • 3 years ago

hangman problem

  • This Question is Open
  1. Opcode
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Do tell?

  2. susantpatra
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I am confused on how to approach this problem. I read the prof. instruction and yet still not clear

  3. TuringTest
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it's very hard to answer such a general question. please try to explain what exactly you don't understand.

  4. susantpatra
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    For example how to use chooseWord? When I call chooseWord(WORRS_FILENAME), I get an alphabet and not a word from words.txt

  5. msmithhnova
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    You first need to get the wordlist and then pass that to chooseWord like this. wordlist = loadWords() random_word = chooseWord(wordlist) Now if you print random_word it will contain a random word from wordlist.

  6. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy