import random correct = random.randint(1, 100) guess = 0 print("I'm thinking of a number...") while correct != guess: guess = int(input("Guess the number: ")) if correct < guess: print("Lower!") elif correct > guess: print("Higher!") print("You got it")