Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterating over lines in a file

for line in myFile.readlines():
    statement1
    statement2
    ...
Source by fopp.umsi.education #
 
PREVIOUS NEXT
Tagged: #iterating #lines #file
ADD COMMENT
Topic
Name
3+7 =