I have written some code with conditional statements and I don't think it's supposed to do what happens.
I tried to rewrite the code many times.
def main():
def enter():
inputenter = input("Please enter a number. ")
if inputenter in ("1", "2", "3", "4", "5"):
getready()
else:
inputstartagain = input("Invalid Request")
def getready():
inputgetreadybrush = input("Did you brush your teeth? ")
if inputgetreadybrush == "Yes" or "yes" or "y" or "Y":
inputgetreadyshower = input("Did you shower? ")
if inputgetreadyshower == "Yes" or "yes" or "y" or "Y":
print("Your output is: I already got ready. ")
elif inputgetreadyshower == "No" or "no" or "N" or "n":
print("Your output is: Shower ")
else:
print("")
elif inputgetreadybrush == "No" or "no" or "n" or "N":
inputgetreadyshower1 = input("Did you shower? ")
if inputgetreadyshower1 == "Yes" or "yes" or "Y" or "y":
print("Your output is: Brush ")
elif inputgetreadyshower1 == "No" or "no" or "n" or "N":
print("Your output is: Brush and Shower ")
else:
print("")
main()
I expected the output of (these are the answers to the if statements) 1,y,n to be "Your output is: Shower" but the actual output is "Your output is: I already got ready. " for everything.