import random secret = random.randint(1, 10) guess = int(input("Pick a number from 1 to 10: ")) if guess == secret: print("Correct! The number was", secret) elif guess < secret: print("Too low. The number was", secret) else: print("Too high. The number was", secret)