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