1. Add up the cart
Write code Easy ✓ CompletedUse a for loop (not sum()) to add up all the prices in prices. Store the result in total, then print it.
prices = [12.5, 3.0, 7.25, 20.0]
total = 0
# loop over prices and add each one to total
prices = [12.5, 3.0, 7.25, 20.0]
total = 0
for price in prices:
total += price
print(total)