Oct-09-2018, 01:29 AM
(Oct-09-2018, 12:52 AM)ichabod801 Wrote: Okay, but fout just creates a file without the header. It doesn't change data. If you want to skip the first row, just loop over data[1:].
You might want to check out the csv module. It is made to handle files like this, and can handle skipping the first row and splitting by tabs for you.
okay I fixed that issue but I have one more question. You showed me how to skip the first row in the loop. Can that same loop also skip the last line? because for
long = line[1]the last line in that reads 'N/A' which cannot be turned into an integer for obvious reasons