In [ ]:
from random import randint
const=randint(0,99)
i = 0

while i<5 :
    num = input("enter your choice:")
    if int(num) > const:
        print("your number is greater")
        
    elif int(num) == const:
        print("congrats you guessed correct")
        break
    else:
        print("your number is less than required")
    i +=1
print("the correct number wasssss")
print(const)


enter your choice:67
your number is greater
enter your choice:43
your number is greater