Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
411 B
7
Indexable
Never
word = "Minus"
guesses = ""
guesses_count = 0
guesses_limit = 3
out_of_guesses = False


while guesses != word and not(out_of_guesses):
    if guesses_count < guesses_limit:
        guesses = input("Guess A Word: ")
        guesses_count += 1
    else:
        out_of_guesses = True


if out_of_guesses is False :
 print("You Won!")
else:
    print("You Ran Out Of Guesses! You Lost :(")