import time
name=input (print("What's your name?"))
print("Hello "+name,"Time to play hangman!")
time.sleep(1)
print ("Start guessing...")
time.sleep(0.5)
word= str (input(print("Enter any word: ")))
print ("The length of the word is: ")
print (len(word))

guesses=" "
turns=10
while turns >0:
        failed =0


            for char in word:
                        if char in guesses:
                                        print (char),

                                                else :
                                                                print ("_")
                                                                            failed +=1

                                                                                    if failed ==0:
                                                                                                    print("You Won!")
                                                                                                                break

                                                                                                                    guess=input(print(" Guess a character: "))
                                                                                                                            guesses +=guess
                                                                                                                                    if guess not in word:
                                                                                                                                                    turns -=1
                                                                                                                                                                print("Wrong!")
                                                                                                                                                                            print("You have ", +turns, "more guesses")
                                                                                                                                                                                        if turns==0:
                                                                                                                                                                                                            print("You Loose!")
                                                                                                                                                                                                                            break

6c7267fd257a9ecc6325a012b52052447cb326cd
import time
name=input (print("What's your name?"))
print("Hello "+name,"Time to play hangman!")
time.sleep(1)
print ("Start guessing...")
time.sleep(0.5)
word= str (input(print("Enter any word: ")))
print ("The length of the word is: ")
print (len(word))

guesses=" "
turns=10
while turns >0:
        failed =0


            for char in word:
                        if char in guesses:
                                        print (char),

                                                else :
                                                                print ("_")
                                                                            failed +=1

                                                                                    if failed ==0:
                                                                                                    print("You Won!")
                                                                                                                break

                                                                                                                    guess=input(print(" Guess a character: "))
                                                                                                                            guesses +=guess
                                                                                                                                    if guess not in word:
                                                                                                                                                    turns -=1
                                                                                                                                                                print("Wrong!")
                                                                                                                                                                            print("You have ", +turns, "more guesses")
                                                                                                                                                                                        if turns==0:
                                                                                                                                                                                                            print("You Loose!")
                                                                                                                                                                                                                            break
