Looping through File Question

planetmatt planetmatt at gmail.com
Wed Sep 5 06:58:54 EDT 2007


I am a Python beginner.  I am trying to loop through a CSV file which
I can do.  What I want to change though is for the loop to start at
row 2 in the file thus excluding column headers.

At present I am using this statement to initiate a loop though the
records:

for line in f.readlines():

How do I start this at row 2?




More information about the Python-list mailing list