Dear StackOverflow community,
i have two py-files (example1.py and example2.py), plan to run example1.py first, example2.py second and want to import a list from the first to the second one. Indeed I tried import example1 and wrote then example1.list1 in example2.py, which is used to get the list list1 from the example1.py, but it actually makes the example1.py file run in example2.py. So, my question is: How can I import the list variable directly to the second py-file without starting the first py-file again?
 
    