Cargando el ejercicio…
In an online store, the final cart total depends on item prices, quantities, and a shared discount. Given a list items, where each item contains price and qty, and a discount percentage discount, calculate the total cost. Apply the discount and return the result rounded to two decimal places.
[[100, 2], [50, 1]], 0250[[100, 1]], 1090[], 500def cart_total(items: list, discount: int) -> float:
Inicia sesión para ver tu historial de envíos
Iniciar sesiónInicia sesión para usar el AI Mentor
Iniciar sesión[[100,2],[50,1]], 0250[[100,1]], 1090[], 500[[199,3]], 1000[[33,3]], 1089.1[[10,1],[20,2]], 2537.5