1. Fix the two syntax errors
Fix the bug Easy ✓ CompletedThis program should print Total: 19.5, but Python rejects it before running anything. There are two grammar mistakes: fix both. total_price(prices) must return the sum and basket must stay [4.5, 3, 12].
def total_price(prices)
return sum(prices)
basket = [4.5, 3, 12
print("Total:", total_price(basket))def total_price(prices):
return sum(prices)
basket = [4.5, 3, 12]
print("Total:", total_price(basket))