Technology & computer science
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 read six short Python-style programs, match each to a type of bug, and write a corrected line.
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.