Answers to questions on Boolean operators

What is the value of the following Boolean expressions?

  1. 1 && 0

    0 False
  2. 1 !! 0

    1 True
  3. ! 3

    0 False
  4. ! 0

    1 True
  5. 1 && 3
    1 True

Back to the questions.


Back to notes on Boolean operators.