Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name_city = input()
- type_package = input()
- vip_package = input()
- number_days_for_holiday = int(input())
- price = 0
- if number_days_for_holiday > 0:
- if number_days_for_holiday > 7:
- number_days_for_holiday -= 1
- if name_city == "Bansko" or name_city == "Borovets":
- if type_package == "noEquipment":
- price = number_days_for_holiday * 80
- if vip_package == "yes":
- price -= price * 0.05
- elif type_package == "withEquipment":
- price = number_days_for_holiday * 100
- if vip_package == "yes":
- price -= price * 0.10
- else:
- print("Invalid input!")
- elif name_city == "Varna" or name_city == "Burgas":
- if type_package == "withBreakfast":
- price = number_days_for_holiday * 130
- if vip_package == "yes":
- price -= price * 0.12
- elif type_package == "noBreakfast":
- price = number_days_for_holiday * 100
- if vip_package == "yes":
- price -= price * 0.07
- else:
- print("Invalid input!")
- else:
- print("Invalid input!")
- else:
- print("Days must be positive number!")
- if price > 0:
- print(f"The price is {price:.2f}lv! Have a nice time!")
Advertisement
Add Comment
Please, Sign In to add comment