Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- nights = int(input())
- studio_price = 50.00
- apartment_price = 65.00
- studio_rent = 0.00
- apartment_rent = 0.00
- if month == "May" or month == "October":
- studio_price = 50.00
- apartment_price = 65.00
- studio_rent = nights * studio_price
- apartment_rent = nights * apartment_price
- if nights > 14:
- studio_rent = studio_rent * 0.70
- elif nights > 7:
- studio_rent = studio_rent * 0.95
- elif month == "June" or month == "September":
- studio_price = 75.20
- apartment_price = 68.70
- studio_rent = nights * studio_price
- apartment_rent = nights * apartment_price
- if nights > 14:
- studio_rent = studio_rent * 0.80
- elif month == "July" or month == "August":
- studio_price = 76.00
- apartment_price = 77.00
- studio_rent = nights * studio_price
- apartment_rent = nights * apartment_price
- if nights > 14:
- apartment_rent = apartment_rent * 0.90
- studio_info = f"Studio: {studio_rent:.2f} lv."
- apartment_info = f"Apartment: {apartment_rent:.2f} lv."
- print(apartment_info)
- print(studio_info)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement