Teo_Yanchev

eastern_trip_20-21-2019_exam

Jul 17th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. destination = input()
  2. dates = input()
  3. nights = int(input())
  4.  
  5. price = 0
  6.  
  7. if destination == "France":
  8. if dates == "21-23":
  9. price += 30
  10. elif dates == "24-27":
  11. price += 35
  12. else:
  13. price += 40
  14. elif destination == "Italy":
  15. if dates == "21-23":
  16. price += 28
  17. elif dates == "24-27":
  18. price += 32
  19. else:
  20. price += 39
  21. else:
  22. if dates == "21-23":
  23. price += 32
  24. elif dates == "24-27":
  25. price += 37
  26. else:
  27. price += 43
  28.  
  29. total = price * nights
  30. print(f"Easter trip to {destination} : {total:.2f} leva.")
Add Comment
Please, Sign In to add comment