I, a rookie, just started to learn Python. The example above on page 557 of Chapter 22 is shown below.
-sharp small.py
x = 1
y = [1,2]
-sharp new1.py
from small import x,y
x = 42
y[0] = 42
-sharp new2.py
import small
print(small.x)
print(small.y)
the execution result said in the book is
1
[42, 2]
but the test result on my own computer is
1
[1, 2]