Shop Order Total
Python
25 pts
Shop Order Total
Abel orders 3 shirts at 150 Nakfa and 2 hats at 60 Nakfa from a shop in Asmara. He gets a 10% discount on the items (multiply their total by 0.9), and then 25 Nakfa is added for delivery.
- Create
finalin one expression, using parentheses where they are needed. - Create
big_order:Truewhenfinalis at least 500 or the number of items (shirts + hats) is more than 10. - Print both.
Expected output:
538.0 True
Checklist
- Keep the given values and create
finalin one expression, with parentheses where they are needed. - Create
big_order:finalis at least 500 or there are more than 10 items. - Print
final, thenbig_order.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
