Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month=input()
- is_may=month=="May"
- is_june=month=="June"
- is_july=month=="July"
- is_august=month=="August"
- is_september=month=="September"
- is_october=month=="October"
- nights_number=int(input())
- price_studio=0
- price_appartment=0
- accomodation=""
- if is_may:
- if accomodation=="Studio":
- price_studio=50
- if 7<nights_number<=14:
- price_studio*=0.95
- if nights_number>14:
- price_studio*=0.7
- if accomodation=="Apartment":
- price_appartment=65
- if nights_number>14:
- price_appartment*=0.9
- elif is_june:
- if accomodation=="Studio":
- price_studio=75.20
- if nights_number>14:
- price_studio*=0.8
- if accomodation=="Apartment":
- price_appartment=68.70
- if nights_number>14:
- price_appartment*=0.9
- elif is_july:
- if accomodation=="Studio":
- price_studio=76
- if accomodation=="Apartment":
- price_appartment=77
- if nights_number>14:
- price_appartment*=0.9
- elif is_august:
- if accomodation=="Studio":
- price_studio=76
- if accomodation=="Apartment":
- price_appartment=77
- if nights_number>14:
- price_appartment*=0.9
- elif is_september:
- if accomodation=="Studio":
- price_studio=75.20
- if nights_number>14:
- price_studio*=0.8
- if accomodation=="Apartment":
- price_appartment=68.70
- if nights_number>14:
- price_appartment*=0.9
- elif is_october:
- if accomodation=="Studio":
- price_studio=50
- if 7<nights_number<=14:
- price_studio*=0.95
- if nights_number>14:
- price_studio*=0.7
- if accomodation=="Apartment":
- price_appartment=65
- if nights_number>14:
- price_appartment*=0.9
- print(f"Apartment: {nights_number*price_appartment:.2f} lv.")
- print(f"Studio: {nights_number*price_studio:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement