SecondaryComputingfor and while loops in Python10–15 min
Loop Tracer
Trace Python for loops with range() in a trace table, then find and fix the bug that makes a while loop stop too early or never end.
Notice, currentExplain, nextApply, next
0 points
The experiment opens when it comes into view.
Theory and model assumptions
Trace Python for loops with range() in a trace table, then find and fix the bug that makes a while loop stop too early or never end.
Teacher guidance
MOE O-Level Computing: iteration (for loops with range(), while loops, accumulators and off-by-one errors)
Expected time: 10–15 minutes.