I created a simple program where a user can add items to their grocery list. After an item is added they're asked if they're done. If they type "yes" the items on the list is printed and the program exits If they type no they can add more items to the list. The problem is that I only want yes or no as the only option. If the user writes anything else I want a message to print out saying you can only write "Yes" or "no". The way I have the code written since the message is at the bottom when the it's printed out the program ends. I'm not sure where to place it. I tried to place inside the while loop but that contradicts with the condition.
mylist = []
are_you_done = "no"
while are_you_done == "no":
grocery_item = input("Add to Grocery ")
are_you_done = input("Are you done? ")
mylist.append(grocery_item)
if are_you_done == "yes":
for item in mylist:
print(item)
else:
print("Please type Yes or No")