Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to form a list from a file in python

   i=0
   List=[""]
   for Line in inFile:
      List[i]=Line.split(",")
      i+=1
   print List
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #form #list #file #python
ADD COMMENT
Topic
Name
3+4 =