Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- volume = int(input())
- size = input()
- delivery = input()
- sum = 0
- if volume <= 10:
- print('Invalid order')
- else:
- if size == '90X130':
- sum = 110
- if 30 < volume <= 60:
- sum *= 0.95
- elif volume > 60:
- sum *= 0.92
- elif size == '100X150':
- sum = 140
- if 40 < volume <= 80:
- sum *= 0.94
- elif volume > 80:
- sum *= 0.9
- elif size == '130X180':
- sum = 190
- if 20 < volume <= 50:
- sum *= 0.93
- elif volume > 50:
- sum *= 0.88
- elif size == '200X300':
- sum = 250
- if 25 < volume <= 50:
- sum *= 0.91
- elif volume > 50:
- sum *= 0.86
- total = sum * volume
- if delivery == 'With delivery':
- total += 60
- if volume > 99:
- total *= 0.96
- print(f'{total:.2f} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement