Advertisement
Spocoman

Easter Trip

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