BetaUnder construction. Questions are being reviewed by teachers — enjoy the free practice in the meantime.
Python basics · Exercise
Market day discount
A tuckshop gives a percentage discount on the whole bill. Write a function bill_after_discount(prices, discount_percent) that takes a list of item prices and a discount percentage, and returns the final bill rounded to 2 decimal places. For example, prices [10.00, 5.00] with 10% discount gives 13.50. Hint: Find the bill total first, then keep (100 - discount_percent) percent of it.