Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # час -> цяло число
- # ден -> текст
- # отворено: час е от 10 до 18, денят е от Пон до Събота
- # затворено: час не е от 10 до 18 или денят е Неделя
- hour = int(input())
- day_of_week = input()
- if day_of_week == "Sunday" or hour > 18 or hour < 10:
- print("closed")
- else:
- print("open")
Advertisement
Add Comment
Please, Sign In to add comment