Best afterValues and names

Numbers have types: int vs float

Every value has a type, and the type decides what an operator does. Nowhere is that clearer than division: Python has two division operators, and they give you different numbers — and different types. Watch the average come out whole or fractional.

Find the average of total = 7 shared between count = 2 (we want 3.5).

Dividing with // drops the remainder execution-derived · CPython
variables
state after line 1 runs
variablevalue
total7
step 1 / 3

Click a line, drag the slider, or use the keys.

What you are looking at

Watch avg, and notice whether it lands as a whole int or a fractional float.

Every state you see came from running the program under CPython's tracer at build time — see how GlassBox stays honest.