Python Program for hangman game..with complete description... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python Program for hangman game..with complete description...

how to check user guess is correct or not...if not correct then give msg that it's wrong guess again

7th Aug 2018, 8:33 AM
Shanu Kumar
Shanu Kumar - avatar
2 Answers
0
Hello there. Can you post a link to your code in here so that we can see what you have tried about your game? https://www.sololearn.com/discuss/1316935/?ref=app
7th Aug 2018, 9:04 AM
Vedant Bang
Vedant Bang - avatar
0
if len(guess) > 1 and guess != answer: print("thats not the word") elif len(guess) > 1 and guess == answer: print("you win") # x func elif guess in answer: print("letter is in the word") # fill func elif guess not in answer: print("that letter is not in the word") # progress func and so on.... it's pretty basic python. I recommend taking the basics tutorial on python here on sololearn so you dont need a full desc on how that works and you'll be able to finish the game
7th Aug 2018, 1:50 PM
Markus Kaleton
Markus Kaleton - avatar