SHARE
TWEET

Cruize ship

a guest Dec 11th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cruise_type = input()
  2. room_type = input()
  3. nights = int(input())
  4. cost = 0
  5. price = 0
  6. final_cost = 0
  7.  
  8. if cruise_type == "Mediterranean" and room_type == "standard cabin":
  9.     price = 27.50
  10. elif cruise_type == "Mediterranean" and room_type == "cabin with balcony":
  11.     price = 30.20
  12. elif cruise_type == "Mediterranean" and room_type == "apartment":
  13.     price = 40.50
  14. elif cruise_type == "Adriatic" and room_type == "standard cabin":
  15.     price = 22.99
  16. elif cruise_type == "Adriatic" and room_type == "cabin with balcony":
  17.     price = 25.00
  18. elif cruise_type == "Adriatic" and room_type == "apartment":
  19.     price = 34.99
  20. elif cruise_type == "Aegean" and room_type == "standard cabin":
  21.     price = 23.00
  22. elif cruise_type == "Aegean" and room_type == "cabin with balcony":
  23.     price = 26.60
  24. elif cruise_type == "Aegean" and room_type == "apartment":
  25.     price = 39.80
  26.  
  27. if nights >= 7:
  28.     cost = price * 4 * nights
  29.     final_cost = cost - 0.25 * cost
  30. else:
  31.     cost = price * 4 * nights
  32.     final_cost = cost
  33. print(f"Annie's holiday in the {cruise_type} sea costs{final_cost: .2f} lv.")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top