Laboratory / Computing

Procedures and state

Step through a small Python trace one expression at a time. Predict the next state before revealing it, then change the input list and identify which instructions remain invariant.

Change one thing
55
35
Step through a small Python trace one expression at a time. Predict the next state before revealing it, then change the input list and identify which instructions remain invariant. Current reading: The trace exposes 4 state transitions. The highlighted instruction is where the next binding changes.0123
What changed

The trace exposes 4 state transitions. The highlighted instruction is where the next binding changes.

Return to the route

Experiment after prediction.

Before changing a control, say which visible feature should move and which should remain invariant. That prediction is the useful part of the experiment; motion alone is not evidence.