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
Log in om je inzendingsgeschiedenis te zien
InloggenLog in om de AI-mentor te gebruiken
InloggenTests4
Visible tests
Focus radio
Paused · SomaFM · Fluid