Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- number_of_nights = int(input())
- total_price = 0
- total_price1 = 0
- if month == "May" or month == "October":
- price_studio = 50
- apartment_price = 65
- if 7 < number_of_nights <= 14:
- price_studio = price_studio - 0.05 * price_studio
- elif number_of_nights > 14:
- apartment_price = apartment_price - 0.1 * apartment_price
- price_studio = price_studio - 0.3 * price_studio
- if month == "June" or month == "September":
- price_studio = 75.2
- apartment_price = 68.7
- if number_of_nights > 14:
- price_studio = price_studio - 0.2 * price_studio
- apartment_price = apartment_price - 0.1 * apartment_price
- if month == "July" or month == "August":
- price_studio = 76
- apartment_price = 77
- if number_of_nights > 14:
- apartment_price = apartment_price - 0.1 * apartment_price
- total_price = number_of_nights * price_studio
- total_price1 = number_of_nights * apartment_price
- print(f"Apartment: {total_price1:.2f} lv.")
- print(f"Studio: {total_price:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement