Sichanov

dd

Jan 23rd, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. working_hours = int(input())
  2. day_of_week = input()
  3.  
  4. if 10 <= working_hours <= 18 and (
  5.         day_of_week == 'Monday' or day_of_week == 'Tuesday' or day_of_week == 'Wednesday' or day_of_week == 'Thursday' or day_of_week == 'Friday' or day_of_week == 'Saturday'):
  6.     print('open')
  7. else:
  8.     print('closed')
Advertisement
Add Comment
Please, Sign In to add comment