Knowledge organisersTesting
Step through manually.
A dry run means stepping through code line by line on paper, recording variable values in a trace table. This helps find logic errors without running the program.
x = 1
for i in range(3):
x = x * 2
print(x)
# Trace: x=1 → x=2 → x=4 → x=8
# Output: 8