I am trying to compare two csv files in python and save the difference to a third csv file in python 2.7.
import csv f1 = open (\"olddata/file1.csv\") oldFile1
The error is correct: tuple has no "difference" method.
I guess you want to use set (and make the elements immutable)?
set1 = set([tuple(item) for item in oldList1]) set2 = set([tuple(item) for item in oldList2])