Essa empresa é sua?
I don't remember the exact question, however, it can be inferred from the complete code below
Sigiloso
def compare(first, second): write(changed, "Id, name, email") write(added, "Id, name, email") write(deleted, "Id, name, email") current_first=get_next_line(first) current_second=get_next_line(second) while current_first!=None and current_second!=None: if current_first[0]==current_second[0]: while current_first==current_second: current_first=get_next_line(first) current_second=get_next_line(second) continue else: write(changed, current_first.toStr()) elif current_first[0]>current_second[0]: while current_second is not None and current_first[0]>current_second[0]: write(added, current_second.toStr()) current_second=get_next_line(second) continue else: #current_first[0]