Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- nights = int(input())
- studio_price = 0
- apartment_price = 0
- if month == "May" or month == "October":
- apartment_price = 65
- studio_price = 50
- if 7 < nights <= 14:
- studio_price = 0.95 * studio_price
- elif nights > 14:
- studio_price = 0.7 * studio_price
- elif month == "June" or month == "September":
- studio_price = 75.20
- apartment_price = 68.70
- if nights > 14:
- studio_price = 0.8 * studio_price
- elif month == "July" or month == "August":
- studio_price = 76
- apartment_price = 77
- if nights > 14:
- apartment_price = 0.9 * apartment_price
- studio_price_total = studio_price * nights
- apartment_price_total = apartment_price * nights
- print(f"Apartment: {apartment_price_total:.2f} lv.")
- print(f"Studio: {studio_price_total:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement