Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cruise_type = input()
- room_type = input()
- nights = int(input())
- cost = 0
- price = 0
- final_cost = 0
- if cruise_type == "Mediterranean" and room_type == "standard cabin":
- price = 27.50
- elif cruise_type == "Mediterranean" and room_type == "cabin with balcony":
- price = 30.20
- elif cruise_type == "Mediterranean" and room_type == "apartment":
- price = 40.50
- elif cruise_type == "Adriatic" and room_type == "standard cabin":
- price = 22.99
- elif cruise_type == "Adriatic" and room_type == "cabin with balcony":
- price = 25.00
- elif cruise_type == "Adriatic" and room_type == "apartment":
- price = 34.99
- elif cruise_type == "Aegean" and room_type == "standard cabin":
- price = 23.00
- elif cruise_type == "Aegean" and room_type == "cabin with balcony":
- price = 26.60
- elif cruise_type == "Aegean" and room_type == "apartment":
- price = 39.80
- if nights >= 7:
- cost = price * 4 * nights
- final_cost = cost - 0.25 * cost
- else:
- cost = price * 4 * nights
- final_cost = cost
- print(f"Annie's holiday in the {cruise_type} sea costs{final_cost: .2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement