I have 3 files in the same directory : test1.py , test2.py and init.py.
In test1.py I have this code:
def test_function():
a = "aaa"
In test2.py I have this code:
from test1 import *
def test_function2():
print(a)
test_function2()
I can import "test_function" (and call the function) into test2.py but i cannot use the variable "a" in test2.py .
Error : Unresolved reference "a" .
I would like to know if it possible to use "a" inside test2.py .