import random
n = random.randrange(1,100)
print ("I'm thinking of a number...")
guess = int(input("Guess the number: "))
while n!= guess:
    if guess < n:
        print("Too low")
        guess = int(input("Guess the number: "))
    elif guess > n:
        print("Too high!")
        guess = int(input("Guess the number: "))
    else:
      break
print("You got it!")