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
Prihláste sa, aby ste videli históriu odoslaní
Prihlásiť saPrihláste sa, aby ste mohli používať AI mentora
Prihlásiť saTests4
Visible tests
Focus radio
Paused · SomaFM · Fluid