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