Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fruit = str(input())
- week_day = str(input())
- quantity = float(input())
- price = 0
- if week_day == 'Monday' or week_day == 'Tuesday' or week_day == 'Wednesday' or week_day == 'Thursday' or week_day == 'Friday' or week_day == 'Saturday' or week_day == 'Sunday':
- True
- else:
- print("error")
- if week_day == 'Monday' or week_day == 'Tuesday' or week_day == 'Wednesday' or week_day == 'Thursday' or week_day == 'Friday':
- if fruit == 'banana':
- price = 2.50
- if fruit == 'apple':
- price = 1.20
- if fruit == 'orange':
- price = 0.85
- if fruit == 'grapefruit':
- price = 1.45
- if fruit == 'kiwi':
- price = 2.70
- if fruit == 'pineapple':
- price = 5.50
- if fruit == 'grapes':
- price = 3.85
- else:
- print("error")
- if week_day == 'Saturday' or week_day == 'Sunday':
- if fruit == 'banana':
- price = 2.70
- if fruit == 'apple':
- price = 1.25
- if fruit == 'orange':
- price = 0.90
- if fruit == 'grapefruit':
- price = 1.60
- if fruit == 'kiwi':
- price = 3.00
- if fruit == 'pineapple':
- price = 5.60
- if fruit == 'grapes':
- price = 4.20
- else:
- print("error")
- total_amount = price * quantity
- print(total_amount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement