Kodewick
Start learning →
Starter←→0 / 100

Is it the weekend?

#007StarterConditions2 min

The alarm stays quiet at weekends. day is 1 to 7 (1 is Monday, 6 Saturday, 7 Sunday). Write is_weekend(day): True for Saturday and Sunday, False otherwise.

Examples
is_weekend(6)→True
is_weekend(3)→False
main.py
def is_weekend(day):
    # your code here: 6 and 7 are the weekend
    pass
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.