I am confused on why my program is not working. I am supposed to use nested ifs to ask people their name and title(doctor, female, male) and then print out either Ms. name Mr. n
name = input("Enter your name : ")
title = input("Enter your title (doctor, female, male) : ")
female = ("Ms.")
doctor = ("Dr.")
male = ("Mr.")
if title == "doctor":
if title != "male":
print(doctor)
else:
print(male)
else:
print(female)