lopus
  • 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
MIT 6.00 Intro Computer Science (OCW)
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
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.
1 Attachment
anonymous
  • anonymous
http://dpaste.com/792336/
anonymous
  • anonymous
http://dpaste.com/792352/

Looking for something else?

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

More answers

anonymous
  • anonymous
Please find attached my version of hangman. All comments highly appreciated.
1 Attachment
anonymous
  • anonymous
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.
anonymous
  • anonymous
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!
anonymous
  • anonymous
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/
anonymous
  • anonymous
I get the following message:"Loading word list from file... 55900 words loaded."
anonymous
  • anonymous
ok, sorry - wrong words.txt - the one in ps2 is a single line
lopus
  • lopus
everybody many thanks. this the final code http://dpaste.com/793342/
anonymous
  • anonymous
is most simple to undestand your code
anonymous
  • anonymous
http://dpaste.com/793942/
lopus
  • lopus
men thanks a lot

Looking for something else?

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