Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Build a simple shopping cart! Read the number of items, then for each item read its name and price.

Print each item with its price in the format name: $price, then print the total.

Example input:

text
2
apple
1
banana
2

Example output:

text
apple: $1
banana: $2
Total: $3

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python