Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- nights_quantity = int(input())
- night_in_studio= 0
- night_in_app = 0
- discount = 1
- if month == "May" or month == "October":
- night_in_studio = 50
- night_in_app = 65
- elif month == "June" or month == "September":
- night_in_studio = 75.20
- night_in_app = 68.70
- elif month == "July" or month == "August":
- night_in_studio = 76
- night_in_app = 77
- if (month == "May" or month == "October") and nights_quantity > 7:
- night_in_studio = night_in_studio * 0.95
- if (month == "May" or month == "October") and nights_quantity > 14:
- night_in_studio *= 0.70
- if (month == "June" or month == "September") and nights_quantity > 14:
- night_in_studio *= 0.80
- if (month == "May" or month == "June" or month == "July"
- or month == "August" or month == "September" or month == "October") and nights_quantity > 14:
- night_in_app *= 0.90
- price_total_stay_app = nights_quantity * night_in_app
- price_total_stay_studio = night_in_studio * nights_quantity
- print(f"Apartment: {price_total_stay_app:.2f} lv.")
- print(f"Studio: {price_total_stay_studio:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement