You want to print a line, but your code asks to print the first and second members of each line
Since you want to print the entire line, you can simply print it and, in addition, read only the first two
#!/usr/bin/env python import csv afile = open('<directory>/*.csv', 'r+') csvReader1 = csv.reader(afile) for i in range(2): print csvReader1.next()
source share