Teacher Note: Print() is Your Friend¶
The goal of this stage of learning about programming is to develop a mental model of how the program works. Can students look at a program and predict what’s going to happen? Can they figure out the values of the variables? Feel free to insert lots of
print() function calls. Have students make a prediction about variable values, then insert
print() calls to display the variable values, and run the program to find out whether the prediction is right. Run this version to see what gets printed.