import random x = random.randint(1,100) a = input while a != x: a = (int(input("Im thinking of a number... "))) print("Guess the number: ", a) if a < x: print("higher ") if a > x: print("lower") if a == x: print("you got it!")