Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hour = int(input())
- day = input()
- if (day == 'Monday' or day == 'Tuesday' or day == 'Wednesday' or day == 'Thursday'\
- or day == 'Friday' or day == 'Saturday') and 10 <= hour <= 18:
- print('open')
- else:
- print('closed')
- Или така:
- hour = int(input())
- day = input()
- if day in ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday') and 10 <= hour <= 18:
- print('open')
- else:
- print('closed')
- Тарикатско решение:)
- print('open' if 10 <= int(input()) <= 18 and (input()) != 'Sunday' else 'closed')
Add Comment
Please, Sign In to add comment