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