Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month=input()
- number_of_nights=int(input())
- place=""
- price_per_night=0
- if month =="may" or month=="octomber":
- if place == "studio":
- price_per_night=50
- if number_of_nights>7:
- price_per_night *= 0.95
- elif number_of_nights>14:
- price_per_night *= 0.70
- elif place=="apartment":
- price_per_night=65
- if month=="june" or month=="september":
- if place == "studio":
- price_per_night=75.20
- if number_of_nights>14:
- price_per_night *= 0.80
- elif place=="apartment":
- price_per_night=68.70
- if month=="july" or month=="august" :
- if place == "studio":
- price_per_night=76
- elif place=="apartment":
- price_per_night=67
- if place=="apartment":
- if number_of_nights>14:
- price_per_night*=0.90
- total_price=number_of_nights*price_per_night
- print(f"Apartment: {total_price:.2f} lv.")
- print(f"Studio: {total_price:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement