n =18
while(1):
print("Please Enter the number")
user_input = int(input())
if(user_input > n):
print("Number is greater")
continue
elif(user_input < n):
print("Number is lesser")
continue
elif(user_input == n):
print("You Guess Right Number")
break
Thanks you for commenting your questions. I will see question and respond you.