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