import random num = random.randint(range(1, 101)) print("I'm thinking of a number...") q1 = int(input("Guess the number: ")) if q1 > num: print("Lower!") elif q1 < num: print("Higher!") else: print("You got it")