Be the Computer: Tracing Variables and Loops
Students trace short programs by hand, tracking how variables change inside for loops, while loops and an if statement.
THE LESSON LIBRARY
Find a lesson that fits your subject, your students, and the time you have.
Students trace short programs by hand, tracking how variables change inside for loops, while loops and an if statement.
Students convert between binary and decimal using a place-value chart, decode a secret word, and add two binary numbers.
Students read six short Python-style programs, match each to a type of bug, and write a corrected line.
Students trace two flowcharts written as numbered boxes, predict outputs for different inputs, and plan a flowchart of their own.
Students act as the computer, tracing robot programs on a 5 by 5 grid, fixing a bug, and writing their own step-by-step program.
Students complete truth tables for AND, OR and NOT, evaluate conditions with given values, and test whether two expressions are equal.