Answer the question
In order to leave comments, you need to log in
How to make changes to a list from another .py file?
There are two files.
the first one stores an empty list
list = []
in the second file, I imported file 1 where the list itself is located
in it, while performing a certain cycle, I write to the list that is in file 1.
something like this
file1.list.append(i)
The problem is the fact that no changes are actually made and the list is still empty, although the ide does not give any errors.
HELP!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question