One of my variables seems to not be working which I'm having trouble finding
<p>I am doing the learn python the hard way course and I had to make my own little story using python. I did make it and I spent a lot of time fixing its many problems, but there is one variable which has resulted in many errors for me.</p>

<p>Here is my code:</p>

<pre><code>def party():
print "You are at a friend's house, and there you find three men who disrespect you.\
\nDo you fight them, insult back, or do you invite them for a drink?"
party_answer = raw_input()
while (party_answer != "fight") and (party_answer != "insult") and (party_answer != "drink"):
    print "Type either 'fight', 'insult', or 'drink'"
    party_answer = raw_input()  

if party_answer == "fight":
    fight()
elif party_answer == "insult":
    insult()
elif party_answer == "drink":
    drink()


def fight():
    print """You decide to fight the men.
After a while, the men start pleading for mercy.
Do you hit them more?"""
fight_answer = raw_input()
while (fight_answer != "yes") and (fight_answer != "no"):
    print "Type either 'yes' or 'no'"
    fight_answer = raw_input()

if fight_answer == "yes":
    print """Your friend sees you fighting and asks you why
Do you blame them, or do you take responsibility and apologize?"""
    fight_answer_y = raw_input()
    while (fight_answer_y != "blame them") and (fight_answer_y != "apologize"):
        print "Type either 'blame them' or 'apologize'"
        fight_answer_y = raw_input()

    if fight_answer_y == "blame them":
        print """Your friend is angry at you fighting at all, and does not believe \
that they started the fight. He kicks you out of the party."""
        exit(1)
    elif fight_answer_y == "apologize":
        print "Your friend forgives you, and asks you to drink with him."
        exit(2)

elif fight_answer == "no":
    print """The men take advantage of you forgiveness and start hitting you.
Fortunately, your friend arrives at this moment. He see them hitting you, \
and then kicks them out of the party."""
    exit(2)

def insult():
print """You insult them, and they challenge you to a fight.
Do you fight them or tell your friend?"""
insult_answer = raw_input()
while (insult_answer != "fight") and (insult_answer != "tell friend"):
    print "Type either 'fight' or 'tell friend'"
    insult_answer = raw_input()

if insult_answer == "fight":
    fight()
elif insult_answer == "tell friend":
    print """You decide to tell your friend.
He says he is happy you told him, and invites you for a drink
The men get kicked out"""
    exit(2)

def drink():
print """You tell them that you will buy drinks for them,\
and they rudely ask you why you are doing this.
Do you insult them or give them a polite response?"""
drink_answer = raw_input()
while (drink_answer != "insult") and (drink_answer != "polite response"):
    print "Type either 'insult' or 'polite response'"
    drink_answer = raw_input()

if drink_answer == "insult":
    insult()
elif drink_answer == "polite response":
    print "You politely respond to them, and they sit down with you and apologize."
    exit(2)

def exit(x):
if x == 1:
    print "You lost. Better luck next time!"
    again = raw_input("Do you want to try again?: ")
    while (again != "yes") and (again != "no"):
        print "Type either 'yes' or 'no'"
        again = raw_input("Do you want to try again?: ")

    if again == "yes":
        party()
    elif again == "no":
        quit()

elif x == 2:
    print "You won. Good job!"
    again = raw_input("Do you want to try again?: ")
    while (again != "yes") and (again != "no"):
        print "Type either 'yes' or 'no'"
        again = raw_input("Do you want to try again?: ")

    if again == "yes":
        party()
    elif again == "no":
        quit() 

party()
</code></pre>

<p>I seem to be getting an error in regards to the variable "fight_answer_y"
Here is the error I'm getting:</p>

<pre><code>  File "mygame1.py", line 38, in fight
    elif fight_answer_y == "apologize":
UnboundLocalError: local variable 'fight_answer_y' referenced before assignment
</code></pre>

<p>Can anyone help explain this since I am new to Python.
Thanks in advance</p>