Fix the Python Shopping Cart Total
Fix a Python shopping cart function so it multiplies every item's price by its quantity, totals every line, and handles an empty cart.
Python
Challenge overview
- Format
- Fix the Bug
- Category
- Python
- Difficulty
- Beginner
pythonlistsdictionariesfunctionssumdebugging
Keep practicing
More coding challenges
JavaScript · Beginner
Fix the Shopping Cart Total
Fix a JavaScript cart total function so it multiplies every item's price by its quantity, includes all lines, and returns zero for an empty cart.
View challengeJavaScript · Beginner
Free Shipping
Combine JavaScript comparison and logical operators to decide when an order qualifies for free shipping based on total and membership.
View challengePython · Beginner
Free Shipping in Python
Combine Python logical operators to award free shipping for qualifying totals or member orders while handling every other order.
View challenge

