Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python import list from py file

# In first .py file
mylist = ['this', 'that', 'theother']

# In second file
from variables import mylist
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #import #list #py #file
ADD COMMENT
Topic
Name
2+5 =