import random print("I'm Thinking of a number...") number = random.randint( 1, 100 ) guess = int(input("Guess the number: ")) if number > guess: print("Lower") elif guess > number: print("Lower") elif guess == number: print("You win!") exit()