import random
print('Hello! What is your name?')
name = input()
secretNumber = random.randint(1, 20)
print('Well, ' + name + ', I am thinking of a number between 1 and 20.')

for guessesTaken in range(1, 7):
	print('Take a guess.')
	guess = int(input())
	if guess < secretNumber:
		print('Your number is too low.')
	elif guess > secretNumber:
		print('Your number is too high!')
	else:
		break

if guess == secretNumber:
	print('Good Job, ' + name + '! You guessed my number in ' + str(guessesTaken) + ' guesses!')
else:
	print('Nope! The number I was thinking of was ' + str(secretNumber))
import random
print('Hello! What is your name?')
name = input()
secretNumber = random.randint(1, 20)
print('Well, ' + name + ', I am thinking of a number between 1 and 20.')

for guessesTaken in range(1, 7):
	print('Take a guess.')
	guess = int(input())
	if guess < secretNumber:
		print('Your number is too low.')
	elif guess > secretNumber:
		print('Your number is too high!')
	else:
		break

if guess == secretNumber:
	print('Good Job, ' + name + '! You guessed my number in ' + str(guessesTaken) + ' guesses!')
else:
	print('Nope! The number I was thinking of was ' + str(secretNumber))