Previous

If-Else Statements

4 / 6
Next

Besides Boolean and, there is also Boolean or and not. Only one of a and b must be true in order for a or b to be true. So the truth table of Boolean or is as follows:

a\b True False
True True True
False True False
The `not` operation works on only one Boolean expression, and `not b` will be the opposite value of `b`. The truth table for `not` is as follows:
b True False
not b False True
Send

Disjunction

Hint
Beginner

Write a Python program that inputs a day of the week. The program should print `Business day" if the day is not "Saturday" or "Sunday".

Help
Solve
Reset
Run
Submit
 

Test results

Test result #
Expected output
Your output

Your email has been verified!