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