Try this:
bird_names=('crow', 'parrot', 'eagle')
def bird_guess():
bird_guess1=input('Enter the bird guess :')
return bird_guess1
def birdtest():
for count in range(1,4):
bird = bird_guess()
if(bird not in bird_names):
print('try', count, 'failed, ', end='')
if count < 3:
print('try again')
else:
print('no more guesses allowed.')
break
else:
print("correct, it is in the list")
break
But, as a new programmer your time would be better spent following
The Python Tutorial[
^]