Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sleeve = float(input())
- front = float(input())
- fabric = input()
- tie = input()
- sum = (sleeve * 2 + front * 2) * 1.1 / 100
- if fabric == "Linen":
- sum *= 15
- elif fabric == "Cotton":
- sum *= 12
- elif fabric == "Denim":
- sum *= 20
- elif fabric == "Twill":
- sum *= 16
- elif fabric == "Flannel":
- sum *= 11
- sum += 10
- if tie == "Yes":
- sum *= 1.2
- print(f'The price of the shirt is: {sum:.2f}lv.')
- Тарикатско решение:)
- sum = 10 + (float(input()) + float(input())) * 0.022 * \
- {"Cotton": 12, "Denim": 20, "Flannel": 11, "Linen": 15, "Twill": 16}[input()]
- print(f'The price of the shirt is: {sum * 1.2 if input() == "Yes" else sum:.2f}lv.')
Add Comment
Please, Sign In to add comment