Advertisement
exDotaPro

27_july_2019_3_luggage_tax

Jan 5th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. suitcase_width = int(input())
  2. suitcase_height = int(input())
  3. suitcase_debt = int(input())
  4. priority_ticket = input()
  5.  
  6. suitcase_volume = suitcase_debt * suitcase_height * suitcase_width
  7. luggage_tax = 0
  8.  
  9. if suitcase_volume > 200:
  10.     if priority_ticket == "true":
  11.         luggage_tax = 20
  12.     else:
  13.         luggage_tax = 100
  14. elif suitcase_volume > 100:
  15.     if priority_ticket == "true":
  16.         luggage_tax = 10
  17.     else:
  18.         luggage_tax = 50
  19. elif suitcase_volume > 50:
  20.     if priority_ticket == "true":
  21.         luggage_tax = 0
  22.     else:
  23.         luggage_tax = 25
  24.  
  25. print(f'Luggage tax: {luggage_tax:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement