You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
welcome_message = "Hi! I'm your shopping assistant. Let me take your order. \n You can type 'add milk' to add milk to your shopping list. \n or you can type 'remove milk' to remove it. \n"
print(welcome_message)
#-->Todo: declare a shopping_list list
def prompt_user():
reply = input("What do you want to add or remove? >> ")
return reply
def check_answer(ans):
pass
def add_item():
#this function can take in a string and store it in an array
pass
def remove_item():
pass
while active:
check_answer(prompt_user()) #this makes the program continously prompt and check response while the boolean 'active' returns True