desislava_topuzakova

07. Working Hours

Feb 21st, 2021
1,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. hour = int(input())
  2. day_of_week = input()
  3.  
  4. if 10 <= hour <= 18 and day_of_week != "Sunday":
  5.     print('open')
  6. else:
  7.     print('closed')
Advertisement
Add Comment
Please, Sign In to add comment