Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- price_over_20_kg = float(input())
- bag_weight = float(input())
- day_before = int(input())
- bag_count = int(input())
- if bag_weight < 10:
- price_over_20_kg /= 5
- elif bag_weight <= 20:
- price_over_20_kg /= 2
- if day_before < 7:
- price_over_20_kg *= 1.4
- elif day_before <= 30:
- price_over_20_kg *= 1.15
- elif day_before > 30:
- price_over_20_kg *= 1.1
- total = price_over_20_kg * bag_count
- print(f' The total price of bags is: {total:.2f} lv. ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement