Advertisement
Guest User

Untitled

a guest
Jun 26th, 2021
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. month = input()
  2. nights = int(input())
  3. studio_price = 0
  4. apartment_price = 0
  5. if month == "May" or month == "October":
  6. studio_price = nights*50
  7. apartment_price = nights*65
  8. if 7 < nights <= 14:
  9. studio_price = 0.95*studio_price
  10. elif nights > 14:
  11. studio_price = 0.7*studio_price
  12. apartment_price = 0.9*apartment_price
  13. elif month == "June" or month == "September":
  14. studio_price = nights*75.20
  15. apartment_price = nights*68.70
  16. if nights > 14:
  17. studio_price = 0.8*studio_price
  18. apartment_price = 0.9*studio_price
  19. elif month == "July" or month == "August":
  20. studio_price = nights*76
  21. apartment_price = nights*77
  22. if nights > 14:
  23. apartment_price = 0.9*apartment_price
  24. print(f"Apartment:{apartment_price: .2f} lv.")
  25. print(f"Studio:{studio_price: .2f} lv.")
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement