Question 24e: list if else

Create an app that:

  • Create two empty lists. One for item name and another for the item price
  • Ask the user for the item name and item price of what he bought then store in the lists
  • If price of item is >500 subtract 50 for discount
  • Press 1 → stop
  • Your app should:
  • Calculate the total amount spent by using sum(item_price)

Write what you are looking for, and press enter to begin your search!