I have not been able to find a reason why the matter does not work for me, so I would like to ask a question here.
I have 2 files:
file2.py:
def test():
    global justTry
    justTry = "hello"
and main.py:
from file2 import *
def main():
    print(justTry)
if __name__ == '__main__':
    test()
    main()
And I am getting the error: NameError: name 'justTry' is not defined.
Why can't I use the justTry variable, which I declared as a global variable in the step before the listing?
 
     
     
    