Source code
x = ❯ Try editing the highlighted part of the code above
5
Edit the 5 in the code above directly (or sweep with the slider). On the last screen, watch the boundary between 256 and 257.
Memory / executionStep 1 / 7
👁 What you can see ── first, the textbook picture: “put it in a box”
x = 5 is an “assignment.” Most tutorials describe it as “you put 5 into a box called x.” That picture is fine to start with. — But soon, when you ask Python whether two separately-made 5s are “the same thing,” the answer changes depending on the value. The secret is that 5 isn’t actually “inside” x. Let’s see why, step by step.
Details
1 / 1