🛒 Supermarket Trolley · Mission 5 of 7

🧾 Add Up the Total

Time to pay! The till adds up the prices of everything in the trolley.

Your mission

  1. Make cart = ["apple", "bread", "juice"] and their prices = [20, 35, 30].
  2. Start the total at 0, and add every price to it, one at a time.
  3. Say "Total: Rs <total>"

Getting the mission ready…