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