Activity 01
Pair Coding: Truth Table Builders
Pairs create truth tables for AND, OR, NOT expressions on paper first. Then, they code Python functions to print table outputs for two variables. Partners test with inputs and compare results to manual predictions.
Explain the role of boolean values in controlling program flow.
Facilitation TipIn Pair Coding, assign one student to type the truth table while the other verbalizes each condition outcome to ensure both students stay engaged.
What to look forProvide students with a Python code snippet containing an if statement with a compound boolean condition. Ask them to write down the final output (True or False) of the condition and explain their reasoning in one sentence.