Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to form a list from a file in python

my_list = [line.split(',') for line in open("filename.txt")]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #form #list #file #python
ADD COMMENT
Topic
Name
4+2 =