Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = int(input())
- height = int(input())
- depth = int(input())
- ticket = input()
- tax = 0
- luggage = width * height * depth
- if luggage < 50:
- tax = 0
- else:
- if 50 <= luggage <= 100:
- if ticket == "true":
- tax = 0
- else:
- tax = 25
- elif 100 < luggage <= 200:
- if ticket == "true":
- tax = 10
- else:
- tax = 50
- elif 200 < luggage <= 300:
- if ticket == "true":
- tax = 20
- else:
- tax = 100
- print(f"Luggage tax: {tax:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement