In my terminal, I run
echo $X
And an empty line is printed because the environment variable X is not defined.
Then I run this python code:
import os
os.environ['X']='Y'
Exited the python console, and checked the value of X again
echo $X
Yet, X is still undefined, what am I doing wrong ?