I have two files with the following contents below.My question is ,in the below shown code if id matches in file1 and file2 then how to match the second column in file1 and the corresponding second column in file2 till n columns..
   def process(file):
     pt = []
     f=open(file)
     for l in f: 
       parts=l.strip().split('\t')
        if len(parts) < 3:
          print 'error with either ur input file or field check parts'
          break
        else:
          pt.append(parts)
     return pt
   arr1 = process(file1)
   arr2 = process(file2)                  
   for arr in arr1:
     if arr[0] in arr2:
        //then match arr1[1] with arr2[1] and so on and get the results
file1:
ID674097256 voice tech department
ID674097257 NA NA
ID674097399 chat  order processing department
file2:
ID674097212 voice tech department
ID674097257 NA NA
ID674097399 chat  new processing department
				
                        
use
zip