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
defprompt_user():
reply=input("What do you want to add or remove? >> ")
returnreply
defcheck_answer(ans):
pass
defadd_item():
#this function can take in a string and store it in an array
pass
defremove_item():
pass
whileactive:
check_answer(prompt_user()) #this makes the program continously prompt and check response while the boolean 'active' returns True