rozalina1988

07_Working_hours

Oct 31st, 2024
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | Source Code | 0 0
  1. hour = int(input())
  2. day_of_week = input()
  3. result = ""
  4.  
  5. if 10 <= hour <= 18 :
  6.     if (day_of_week == "Monday" or
  7.         day_of_week == "Tuesday" or
  8.         day_of_week == "Wednesday" or
  9.         day_of_week == "Thursday" or
  10.         day_of_week == "Friday" or
  11.         day_of_week == "Saturday"):
  12.         result = "open"
  13.     else:
  14.         result = "closed"
  15. print(result)
Advertisement
Add Comment
Please, Sign In to add comment