import random X = random.randint(1, 100) n = (int(input("Guess the number: "))) print(X) while n != X: if n < X: print("higher!") n = (int(input("Guess the number: "))) else: print("lower!") n = (int(input("Guess the number: "))) print("You got it")