Advertisement
exDotaPro

20_april_2019_3_easter_trip

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