🛒 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
- Make cart = ["apple", "bread", "juice"] and their prices = [20, 35, 30].
- Start the total at 0, and add every price to it, one at a time.
- Say "Total: Rs <total>"
Getting the mission ready…