Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def hangman():
- active=True
- list="EVAPORATE"
- print("welcome to the Hangman game\t!, Let's play")
- mylist=[]
- while active:
- print("guess the letter")
- user=input()
- if user.title() not in list:
- print("incorrect guess!,try again")
- elif user.title() in list:
- mylist.append(user.title())
- print("good guess!,try another letter to guess")
- if len(mylist) > 8:
- print(mylist)
- print("\nGood job you guess all the correct letters for the word ",list)
- break
- active=False
- hangman()
Add Comment
Please, Sign In to add comment