Boolean Logic, online

Six activities your students do on their own devices. See who's finished, and their scores.

Boolean Logic in one minute

What students need to know

'and' returns True only when both sides are True. 'not' flips the boolean — not False gives True.

or returns True if at least ONE side is True. Python booleans are True and False — capital T and F.

Mistakes students make

  • Booleans must be capitalized True and False, not true and false.
  • Boolean operators are lowercase and, not AND.
  • Use the word 'and', not the & symbol.
  • Use the word 'or', not the | symbol.

Discover other journeys with this module

What students will learn in this module

Every question in Module 13

Quick questions

  1. What does True and False return?AFalseBTrue
  2. What does True or False return?AFalseBTrue
  3. What does not True return?AFalseBTrue
  4. What does False and False return?AFalseBTrue
  5. What does False or True return?AFalseBTrue

Key terms

Students type the meaning of:

  • Boolean
  • and
  • or
  • not

Match the pairs

if x > 0 AND x < 10:Match it to what it does
result = trueMatch it to what it does
x > 0 and x < 10Match it to what it does
not FalseMatch it to what it does
print(True or False)Match it to what it does
print(True and False)Match it to what it does

Fill in the blanks

  1. print(True ___ True)
  2. print(True __ False)
  3. print(___ False)
  4. print(5 > 3 ___ 2 < 10)
  5. print(___ (10 == 5))

Spot the error

Question 1

Ax = TrueBprint(true and false)Cprint(x)

Question 2

Aa = TrueBprint(True AND False)Cb = False

Question 3

Ax = TrueBprint(True & False)Cprint(x)

Question 4

Aa = FalseBprint(True | False)Cprint(a)

Question 5

Ax = TRUEBprint(x)Cprint(not x)