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