Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- orders_num = int(input())
- total_price = 0
- for i in range(orders_num):
- price_capsule = float(input())
- if 0.01 <= price_capsule <= 100.0:
- continue
- days = int(input())
- if 1 <= days <= 31:
- continue
- needed_capsules = int(input())
- if 1 <= needed_capsules <= 2000:
- continue
- sum_of_price = price_capsule * days * needed_capsules
- print(f"The price for the coffee is: ${sum_of_price}")
- total_price += sum_of_price
- print(f"Total: ${total_price}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement