Store

  • Offer choices with prices
  • Ask what they want
  • “I don’t have that” if you do not recognize the item.
  • “quit” = stop asking.
  • Print what they have purchased so far.

Template

want = "get started"
while want != "quit":
    want = input("What do you want to buy?")
    if want == "avocado":
        money -= price
        avocado += 1
    elif ...: