Incorrect Output in calculate_total Function
Description:I have encountered an issue in the calculate_total() function in the billing.py file. When I provide input with a list of prices, the total calculated is incorrect. The function does not seem to handle decimal values correctly.
from billing import calculate_total
prices = [12.99, 5.49, 8.75]
total = calculate_total(prices)
print(total)
Incorrect Output in calculate_total Function
Description:I have encountered an issue in the calculate_total() function in the billing.py file. When I provide input with a list of prices, the total calculated is incorrect. The function does not seem to handle decimal values correctly.