# Generates a pseudorandom number between 1 and 10, inclusive, and asks the user to guess that number from random import randint # Generate a pseudorandom number n = randint(1, 10) # Prompt user to guess guess = int(input("Guess: ")) # Compare numbers if guess == n: print("Correct") else: print("Incorrect")