import random

# Create a variable that holds a random number between 1 and 5
random_number = random.randint(1, 5)

# Let the user guess the number
while True:
    guess = int(input("Guess the number (between 1 and 5): "))

    # Check if the guessed number is correct
    if guess == random_number:
        print("Congratulations! You guessed the number correctly.")
        break
    elif guess > random_number:
        print("Guessed number is less than the random number.")
    elif guess < random_number:
        print("Guessed number is greater than the random number.")
    else:
        print("Wrong guess. Try again!")

