Jan-21-2021, 10:00 AM
Thank you for the example, and I admit that I made a stupid mistake complicating my life by creating an array variable, in short, I widened the circle then using the .tolist () etc. etc.
Starting with your example, my question is even simpler.
is it possible to change the variable X in Test1.py through Test3.py?
that is X = 10 in Test1.py
when I run Test3.py I import the variable X, which after some calculations becomes a value = 15, so this new x = 15, can I overwrite it at X = 10 you take in Test1.py?
Example:
test1.py
x=10
------------------------------------------------------------------------
test3.py
from test1 import x
y = int(x + 5)
print (y) ## result 15
-------------------------------------------------------------------------
(new)test1.py
x = 15 ## new value
Starting with your example, my question is even simpler.
is it possible to change the variable X in Test1.py through Test3.py?
that is X = 10 in Test1.py
when I run Test3.py I import the variable X, which after some calculations becomes a value = 15, so this new x = 15, can I overwrite it at X = 10 you take in Test1.py?
Example:
test1.py
x=10
------------------------------------------------------------------------
test3.py
from test1 import x
y = int(x + 5)
print (y) ## result 15
-------------------------------------------------------------------------
(new)test1.py
x = 15 ## new value