import random
num = random.randint(1, 9)
chance = 4
while chance > 0:
    guess = int(input("Enter your guess:- "))
    if(guess == num):
        print("YOU WON!!! your guess was correct")
        break
    elif(guess > num):
        print("Your guess was too high, guess a number lower than", guess)
    elif(guess < num):
        print("your guess was too low, guess a number higher than", guess)
    chance = chance - 1

if(chance == 0):
    print("YOU LOSE!!! The number is", num)
f3a1208a6733736719b9317403c16f9353ed1a09
<mask token>

<mask token>
while chance > 0:
    guess = int(input('Enter your guess:- '))
    if guess == num:
        print('YOU WON!!! your guess was correct')
        break
    elif guess > num:
        print('Your guess was too high, guess a number lower than', guess)
    elif guess < num:
        print('your guess was too low, guess a number higher than', guess)
    chance = chance - 1
if chance == 0:
    print('YOU LOSE!!! The number is', num)

<mask token>
num = random.randint(1, 9)
chance = 4
while chance > 0:
    guess = int(input('Enter your guess:- '))
    if guess == num:
        print('YOU WON!!! your guess was correct')
        break
    elif guess > num:
        print('Your guess was too high, guess a number lower than', guess)
    elif guess < num:
        print('your guess was too low, guess a number higher than', guess)
    chance = chance - 1
if chance == 0:
    print('YOU LOSE!!! The number is', num)

import random
num = random.randint(1, 9)
chance = 4
while chance > 0:
    guess = int(input('Enter your guess:- '))
    if guess == num:
        print('YOU WON!!! your guess was correct')
        break
    elif guess > num:
        print('Your guess was too high, guess a number lower than', guess)
    elif guess < num:
        print('your guess was too low, guess a number higher than', guess)
    chance = chance - 1
if chance == 0:
    print('YOU LOSE!!! The number is', num)

import random
num = random.randint(1, 9)
chance = 4
while chance > 0:
    guess = int(input("Enter your guess:- "))
    if(guess == num):
        print("YOU WON!!! your guess was correct")
        break
    elif(guess > num):
        print("Your guess was too high, guess a number lower than", guess)
    elif(guess < num):
        print("your guess was too low, guess a number higher than", guess)
    chance = chance - 1

if(chance == 0):
    print("YOU LOSE!!! The number is", num)