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