Sleep In Rule
Write a function sleep_in that takes two flags: whether today is a weekday weekday and whether you are on vacation vacation. Return True if you can keep sleeping: today is not a weekday or you are on vacation. The logical operators and, or, and not will help you combine conditions.
Примеры
Ввод
False, FalseВывод
TrueВвод
True, FalseВывод
FalseВвод
False, TrueВывод
TrueНужно реализовать
def sleep_in(weekday: bool, vacation: bool) -> bool:
Теги
math
Inicia sesión para ver tu historial de envíos
Iniciar sesiónInicia sesión para usar el AI Mentor
Iniciar sesiónTests4
Visible tests
Focus radio
Paused · SomaFM · Fluid