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
PostgreSQLv16

Šeit parādīsies koda izpildes rezultāts

Tests4
Visible tests
Focus radio
Paused · SomaFM · Fluid