how to access variable from one python file to another code example Example: how to import a variable from another python file from file1 import x1 print(x1)