Sichanov

working hours

May 25th, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. hour = float(input())
  2. day = input()
  3. open_hours = 10 <= hour <= 18
  4.  
  5. if 10 <= hour <= 18:
  6.     if day == 'Monday' or day == 'Tuesday' or day == 'Wednesday' or day == 'Thursday' or day == 'Friday' or day == 'Saturday':
  7.         print('open')
  8.     else:
  9.         print('closed')
  10. else:
  11.     print('closed')
  12.  
Advertisement
Add Comment
Please, Sign In to add comment