guess = ""
guess_count = 0
guess_limit = 3
out_of_guesses = False

while guess != "3" and not out_of_guesses:
    if guess_count < guess_limit:
        guess = input("Enter a guess(a num from 1 to 9: ")
        guess_count += 1
    else:
        out_of_guesses = True

if out_of_guesses:
    print("You lose!")
else:
    print("You win!")
