from random import randint

# choose a number between 1 and 1000
price = randint(1,1000)

running = True

while running:

    user_price = int(input("Enter the price"))

    # conditions
    if user_price == price:
        print("Nice !")
        # end
        running = False

    elif user_price > price:
        print("less")
    elif user_price < price:
        print("more")

ba98f91f8fefd0357f7f69597634e0163890409e
<mask token>

<mask token>
while running:
    user_price = int(input('Enter the price'))
    if user_price == price:
        print('Nice !')
        running = False
    elif user_price > price:
        print('less')
    elif user_price < price:
        print('more')

<mask token>
price = randint(1, 1000)
running = True
while running:
    user_price = int(input('Enter the price'))
    if user_price == price:
        print('Nice !')
        running = False
    elif user_price > price:
        print('less')
    elif user_price < price:
        print('more')

from random import randint
price = randint(1, 1000)
running = True
while running:
    user_price = int(input('Enter the price'))
    if user_price == price:
        print('Nice !')
        running = False
    elif user_price > price:
        print('less')
    elif user_price < price:
        print('more')

from random import randint

# choose a number between 1 and 1000
price = randint(1,1000)

running = True

while running:

    user_price = int(input("Enter the price"))

    # conditions
    if user_price == price:
        print("Nice !")
        # end
        running = False

    elif user_price > price:
        print("less")
    elif user_price < price:
        print("more")
