desislava_topuzakova

07. Working Hours

Oct 21st, 2020
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. hour = int(input())
  2. day = input()
  3.  
  4. if day == "Monday" or day == "Tuesday" or day == "Wednesday" or day == "Thursday" or day == "Friday" or day == "Saturday":
  5.     if 10 <= hour <= 18:
  6.         print("open")
  7.     else:
  8.         print("closed")
  9. else:
  10.     print("closed")
Add Comment
Please, Sign In to add comment