The following loop scans trough two lists (source and master) for the matched ID (index 0) and then for that row where the ID is a match, it looks trough changed columns and prints them:
for row in source:
identifier = row[0]
new_cols = row[1:]
for row in master:
old_cols = row[1:]
if identifier == row[0]:
print(row[0]) # ID that matched
changed_cols = [col for col in new_cols if col not in old_cols]
print(changed_cols) # cols that differ
Lists contain over 20 columns per row so I thought using row[1:] would be smart but I'm not sure how to use this method to get the changed column's index. Thanks for any help.
UPDATE:
source = [['1002', '', '', '', '13RA11', '', 'LO', '4302', '99111', '0', ''],
['1076', '', '', '', '13RA11', '', 'LO', '4302', '999111', '0', ''],
['1130', '', '', '', '11HOT1A', '', 'LO', '4302', '99111', '0', '']]
master = [['1002', '', '', '', '13RA11', '', 'LO', '4302', '99111', '0', ''],
['1076', '', '', '', '13RA11', '', 'LO', '4302', '999111', '1', ''],
['1130', '', '', '', '13RA11', '', 'LO', '4302', '99111', '1', '']]