def InitializeSession(): therapist = ChooseTherapist() patient = getPtName() first_Uresponse = raw_input("\n%s\n\n"%(Therapist.introduce(therapist,patient))) return therapist, patient, first_Uresponse
def InitializeSession(): therapist = ChooseTherapist() patient = getPtName() first_Uresponse = raw_input("\n%s\n\n" % (Therapist.introduce(therapist, patient))) return therapist, patient, first_Uresponse
return answer def DetectFeels(user_input): feel_think = re.compile(r'(.*?((feel|think)(ing)?)(.*)\.)') if re.match(feel_think, user_input): answer = "What makes you %s that way?"%(feel_think.group(1)) therapist = ChooseTherapist() name = NameCheck(raw_input("\nAnd what's your name?\n\n")) patient = pt(name) print Therapist.introduce(therapist,name) opener = Stylize(therapist, "\nWhat would you say is the single biggest challenge you're facing right now?") user_init = raw_input(opener+"\n\n")