Advertisement
mark79

Hotel Room

Oct 5th, 2019
1,380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. month = input()
  2. days = int(input())
  3.  
  4. studio_price = 76
  5. apartment_price = 77
  6. if month == "May" or month == "October":
  7.     studio_price = 50
  8.     apartment_price = 65
  9.     if days > 14:
  10.         studio_price *= 0.7
  11.     elif days > 7:
  12.         studio_price *= 0.95
  13. elif month == "June" or month == "September":
  14.     studio_price = 75.2
  15.     apartment_price = 68.7
  16.     if days > 14:
  17.         studio_price *= 0.8
  18.  
  19. if days > 14:
  20.     apartment_price *= 0.9
  21.  
  22. print(f"Apartment: {days * apartment_price:.2f} lv.")
  23. print(f"Studio: {days * studio_price:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement