import random

secretNumber = random.randint(1,20)
print('I\'m thinking of a number between 1 and 20')

for guessesTaken in range(0,3):
    print('Take a guess')
    guess = int(input())

    if guess < secretNumber:
        print('Your guess is too low')
    elif guess > secretNumber:
        print('Your guess is too high')
    else:
        break

if guess == secretNumber:
    print('Good job! You guessed my number in ' + str(guessesTaken) + ' guesses!')
else:
    print('Aw man!! You couldn\'t guess my number :( It was ' + str(secretNumber))
