exDotaPro

27_july_2019_3_cruise_ship

Jan 5th, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.96 KB | None | 0 0
  1. cruise_type = input()
  2. cabin_type = input()
  3. nights = int(input())
  4.  
  5. night_price = 0
  6.  
  7. if cruise_type == "Mediterranean":
  8.     if cabin_type == "standard cabin":
  9.         night_price = 27.50
  10.     elif cabin_type == "cabin with balcony":
  11.         night_price = 30.20
  12.     elif cabin_type == "apartment":
  13.         night_price = 40.50
  14. elif cruise_type == "Adriatic":
  15.     if cabin_type == "standard cabin":
  16.         night_price = 22.99
  17.     elif cabin_type == "cabin with balcony":
  18.         night_price = 25.00
  19.     elif cabin_type == "apartment":
  20.         night_price = 34.99
  21. elif cruise_type == "Aegean":
  22.     if cabin_type == "standard cabin":
  23.         night_price = 23.00
  24.     elif cabin_type == "cabin with balcony":
  25.         night_price = 26.60
  26.     elif cabin_type == "apartment":
  27.         night_price = 39.80
  28.  
  29. trip_price = 4 * nights * night_price
  30.  
  31. if nights > 7:
  32.     trip_price *= 0.75
  33.  
  34. print(f'Annie\'s holiday in the {cruise_type} sea costs {trip_price:.2f} lv.')
Advertisement
Add Comment
Please, Sign In to add comment