import random

number_to_guess = random.randint(1, 10)

while True:
    user_guess = int(input('Guess our number (between 1 and 10): '))
    if user_guess == number_to_guess:
        print('Congratulations! You won!')
        break
    elif user_guess < number_to_guess:
        print('Too low!')
    else:
        print('Too high!')