how to call a variable from another file in python code example
Example 1: python use variable in another file
from OtherFile import Variable
#this assumes the 2 files are in the same folder, if not see here:
'''
https://stackoverflow.com/questions/4383571/importing-files-from-different-folder
'''
Example 2: how to import a variable from another python file
from file1 import x1
print(x1)
Example 3: how to request a variable from imported file python
from file1 import *
#now use x1, x2..