I would like to ask the user to input the gender. if the user's answer is not male or female, I want to loop the question again and again until the user enter male or female
here is what I wrote:
while not (mf):
gender=input("Next, the gender of the character is (male/female):")
if gender == ("male") or ("female"):
mf=True
else:
print("Enter the correct gender type.")
if I enter female when asking gender, it would treat as wrong, but both female and male should be correct answer.