Sichanov

dd

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