This question already has an answer here:
Here's my code:
def ques():
isfem = input("Are you a female? ")
isshort = input("Are you short? ")
if(isfem and isshort=="True"):
print("You are a short female")
elif(isfem and isshort=="False"):
print("You are a tall male")
elif isfem and not(isshort):
print("You are a tall female")
else:
print("You are a short male")
ques()
Trying to create a system that asks if you are a female, and then are you short (replying with true/false), then pops out the answer saying what you are (e.g. a tall female) but only the first two are working!!
Aucun commentaire:
Enregistrer un commentaire