Hi, @Smilish,
I hope this below code will help you:
file_list = ['Sample1.csv', 'Sample2.csv']
f1 = open(file_list[0], 'r').readlines()  
f2 = open(file_list[1], 'r').readlines()  
fName = open('output.csv', 'a') 
for _ in range(2):  
for row in f1: 
 if row not in f2:  
fName.write(row) 
 f1, f2 = f2, f1  |