So I originally wrote this code as a bunch of if/elif/else statements to gain points in order to figure out who a person was. The problem was I couldn't figure out how to make the else statement go back to the original question, as that question was only represented by a variable = raw_input statement. The idea was to make it intricate for a lot of my friends. In fixing the original problem with the else statement, I messed up the addition portion to determine the answer. How do I fix it to actually count as it goes? As you can see I'm extremely new to coding. I'm sorry for the basic question, as I'm sure the answer is very simple. I appreciate any help.
from sys import exit
Tom = 0
Jon = 0
Chris = 0
def question_a():
q1 = raw_input("Hello there. I am going to try to guess who you are. Would you like to play?")
if q1 == "yes":
question_b()
elif q1 == "no":
print "Well f**k you too then"
else:
print "You should follow the rules."
question_a()
def question_b():
print "Do you have any hair?"
q1 = raw_input("> ")
if q1== "no":
print "you're Karl"
exit(0)
elif q1 == "yes":
Tom == Tom + 1
Chris == Chris + 1
Jon == Jon + 1
question_c()
else:
print "You should follow the rules."
question_b()
def question_c():
print "Do you enjoy working on cars?"
q1 = raw_input("> ")
if q1 == "yes":
Chris == Chris + 1
Jon == Jon + 1
question_d()
elif q1 == "no":
Tom == Tom + 1
question_d()
else:
print "you should follow the rules."
question_c()
def question_d():
print "Do you own a husky?"
q1 = raw_input("> ")
if q1 == "no":
Tom == Tom + 1
Chris == Chris + 1
elif q1 == "yes":
Jon == Jon + 1
else:
print "Hey you, follow the rules."
question_d()
# python guess_who2.py
for Tom > Jon and Tom > Chris:
print "You're Tom"
for Jon > Chris and Jon > Tom:
print "You're Jon"
for Chris > Tom and Chris > Jon:
print "You're Chris"
question_a()