2.6. Visualizing how Python Evaluates ExpressionsΒΆ

Helping students develop a good mental model of how Python evaluates expressions is important. Show eval is useful to help them see how reassignment works, operator precedence, function calls, and more.

x = 5
y = 7
add(square(y), square(x))
Next Section - 2.7. Clickable Code