Mode:
Duration:
1
2
3
4
5
6
7
8
LET cart = []
LET prices = []
FUN addItem(item, price) = APPEND(cart, item); APPEND(prices, price)
FUN removeItem(index) = DELETE(cart,index); DELETE(prices,index)
# Simulate actions
addItem("Apple",2)
addItem("Banana",3)
removeItem(1)Coding works best on desktop or with an external keyboard.