Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- nights_stay = int(input())
- if (month == 'May' or month == 'October'):
- studio = 50
- apartment = 65
- if 7 <= nights_stay > 14:
- final_apartment_price = apartment * nights_stay
- studio_price = studio - (studio * 0.05)
- final_studio_price = studio_price * nights_stay
- print(f'Apartment: {final_apartment_price:.2f} lv.')
- print(f'Studio: {studio_price:.2f} lv.')
- elif nights_stay >= 14:
- final_apartment_price = apartment * nights_stay
- studio_price = studio - (studio * 0.3)
- final_studio_price = studio_price * nights_stay
- print(f'Apartment: {final_apartment_price:.2f} lv.')
- print(f'Studio: {final_studio_price:.2f} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement