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