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