DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python how to read file every line as list
with open(filename) as file: lines = file.readlines() lines = [line.rstrip() for line in lines]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#read
#file
#line
#list
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit