I use python 3.6 os.environ[] to set/get variables. My question is - why the Linux command #pritenv does not show these variables? Here is the example:
[root@server ~ 508]$cat test.py
import os
os.environ['foo'] = 'bar'
print(os.environ['foo'])
[root@server ~ 509]$
[root@server ~ 509]$
[root@server ~ 509]$python3.6 test.py
bar
[root@server ~ 510]$printenv | grep foo
[root@server ~ 511]$ ((nothing))