Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- day = input()
- price = 0
- if day == 'Monday' or day == 'Tuesday' or day == 'Friday':
- price = 12
- elif day == 'Wednesday' or day == 'Thursday':
- price = 14
- else:
- price = 16
- print(price)
- ИЛИ:
- day = input()
- price = 0
- if day in ('Monday', 'Tuesday', 'Friday'):
- price = 12
- elif day in ('Wednesday', 'Thursday'):
- price = 14
- else:
- price = 16
- print(price)
- ИЛИ:
- day = input()
- day_ticket_price = {'Monday': 12, 'Tuesday': 12, 'Wednesday': 14, 'Thursday': 14, 'Friday':12, 'Saturday': 16, 'Sunday': 16}
- print(day_ticket_price.get(day))
- Или тарикатската:)
- print({'Monday': 12, 'Tuesday': 12, 'Wednesday': 14, 'Thursday': 14, 'Friday': 12, 'Saturday': 16, 'Sunday': 16}[(input())])
Add Comment
Please, Sign In to add comment