Sichanov

Untitled

May 27th, 2021
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. time_hour = int(input())
  2. day_of_week = input()
  3. if day_of_week == "Monday":
  4.     if 10 <= time_hour <= 18:
  5.         print("open")
  6. elif day_of_week == "Tuesday":
  7.     if 10 <= time_hour <= 18:
  8.         print("open")
  9. elif day_of_week == "Wednesday":
  10.     if 10 <= time_hour <= 18:
  11.         print("open")
  12. elif day_of_week == "Thursday":
  13.     if 10 <= time_hour <= 18:
  14.         print("open")
  15. elif day_of_week == "Friday":
  16.     if 10 <= time_hour <= 18:
  17.         print("open")
  18. elif day_of_week == "Saturday":
  19.     if 10 <= time_hour <= 18:
  20.         print("open")
  21. else:
  22.     print('closed')
  23.  
  24. if not 10 <= time_hour <= 18:
  25.     print("closed")
Advertisement
Add Comment
Please, Sign In to add comment