So I have the code set up where if the input is not yes or no print("Type Yes or No") but even if I type yes or no the message is still printed.
mylist = []
are_you_done = "no"
while are_you_done != "yes":
grocery_item = input("Add to Grocery ")
are_you_done = input("Are you done? ").lower()
mylist.append(grocery_item)
if are_you_done != "yes" or are_you_done != "no":
print("Type Yes or No")
are_you_done = input("Are you done? ").lower()
for item in mylist:
print(item)
if are_you_done != "yes" or are_you_done != "no"— This condition is always true. A string cannot be equal to both "yes" and "no", so it is always unequal to at least one of them.