desislava_topuzakova

07. Working Hours

Apr 17th, 2021
1,218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. # час -> цяло число
  2. # ден -> текст
  3.  
  4. # отворено: час е от 10 до 18, денят е от Пон до Събота
  5. # затворено: час не е от 10 до 18 или денят е Неделя
  6. hour = int(input())
  7. day_of_week = input()
  8. if day_of_week == "Sunday" or hour > 18 or hour < 10:
  9.     print("closed")
  10. else:
  11.     print("open")
Advertisement
Add Comment
Please, Sign In to add comment