-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels