Advertisement
ydpetkov

working_hours

Jul 19th, 2022
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. time = int(input())
  2. day_of_the_week = input()
  3.  
  4. if time >= 10 and time <= 18:
  5. if day_of_the_week == "Monday" or \
  6. day_of_the_week == "Tuesday" or \
  7. day_of_the_week == "Wednesday" or \
  8. day_of_the_week == "Thursday" or \
  9. day_of_the_week == "Friday" or \
  10. day_of_the_week == "Saturday":
  11. print("open")
  12. else:
  13. print("closed")
  14. else:
  15. print("closed")
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement