3  Python Execution Model

3.1 The Real Problem

When you run:

x = 10
y = x
x = 20

3.2 Quick Sanity Test

import sys
import numpy as np

print("Python path:", sys.executable)
print("NumPy version:", np.__version__)
Python path: /opt/hostedtoolcache/Python/3.11.15/x64/bin/python3
NumPy version: 2.4.2