Jul-18-2021, 05:37 PM
Hi,
I have problem comparing 2 lists. one list has 10 records and the other have less than 10 so it is between 1 and 9 records. What I am trying to accomplish is to compare the 2 lists and create new empty list to hold the missing items. Example:
Second List has list of [1,2,3,4,5,6,7,8,9,10]
so I need to compare them and get a new list that has [2,4,8,9,10]
thanks.
I have problem comparing 2 lists. one list has 10 records and the other have less than 10 so it is between 1 and 9 records. What I am trying to accomplish is to compare the 2 lists and create new empty list to hold the missing items. Example:
for rec in records2: questions.append(rec[4]) for record in records: questions2.append(record[0])First List has list of let us say [1,3,5,6,7]
Second List has list of [1,2,3,4,5,6,7,8,9,10]
so I need to compare them and get a new list that has [2,4,8,9,10]
thanks.