Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

txt to list python

with open('names.txt', 'r') as f:
    myNames = [line.strip() for line in f]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #txt #list #python
ADD COMMENT
Topic
Name
4+1 =