In my project I have 4 python files:
file1.py, file2.py file3.py, file4.py
test_list1 list I want to define globally this should accessible to all the files.
I mean,
if i will define list in file1.py
test_list1 = []
and I am importing file1.py to file2.py, file3.py and file4.py
I need to append values to list test_list1 from file2.py , file3.py and file4.py
The execution of the script flow is file2.py followed by file3.py and followed by file4.py. and again file 2 is going to access
what is the best way to define variable this kind of different files.
I know my English language is worst . Please let me know if not understand the question properly.