Guest User

Untitled

a guest
Jun 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. def hangman():
  2. active=True
  3. list="EVAPORATE"
  4. print("welcome to the Hangman game\t!, Let's play")
  5. mylist=[]
  6. while active:
  7. print("guess the letter")
  8. user=input()
  9. if user.title() not in list:
  10. print("incorrect guess!,try again")
  11. elif user.title() in list:
  12. mylist.append(user.title())
  13. print("good guess!,try another letter to guess")
  14. if len(mylist) > 8:
  15. print(mylist)
  16. print("\nGood job you guess all the correct letters for the word ",list)
  17. break
  18. active=False
  19. hangman()
Add Comment
Please, Sign In to add comment