DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit