import random
hidden = random.randint(1, 100)
i = 0
while i < 7:
    guess = int(input())
    if guess == hidden:
        print('you nailed it!', guess)
        break
    elif guess > hidden:
        print('The value is smaller than your guess')
    else:
        print('The value is bigger than your guess')
    i += 1
else:
    print('failed to guess a number in 7 times!')

4ab4509182ade8128d3917fc9d0596893f2ea899
<mask token>

<mask token>
while i < 7:
    guess = int(input())
    if guess == hidden:
        print('you nailed it!', guess)
        break
    elif guess > hidden:
        print('The value is smaller than your guess')
    else:
        print('The value is bigger than your guess')
    i += 1
else:
    print('failed to guess a number in 7 times!')

<mask token>
hidden = random.randint(1, 100)
i = 0
while i < 7:
    guess = int(input())
    if guess == hidden:
        print('you nailed it!', guess)
        break
    elif guess > hidden:
        print('The value is smaller than your guess')
    else:
        print('The value is bigger than your guess')
    i += 1
else:
    print('failed to guess a number in 7 times!')

import random
hidden = random.randint(1, 100)
i = 0
while i < 7:
    guess = int(input())
    if guess == hidden:
        print('you nailed it!', guess)
        break
    elif guess > hidden:
        print('The value is smaller than your guess')
    else:
        print('The value is bigger than your guess')
    i += 1
else:
    print('failed to guess a number in 7 times!')
