Total the cart, then discount it
An online shop totals a basket and applies a promotion. This lab puts loops, lists and conditions together.
Given for you: prices (the price of every item) and discount_percent
Build:
item_count— how many items are in the carttotal— the sum of every pricefinal_total— the total after the discount, but only when the total is over 50
Print: the item count, the total, then the final total (round the money to 2 decimals).
The autograder reruns your program with a small cart, so the discount rule has to be a real condition — not just a subtraction.