Nov-30-2021, 09:07 AM
You could do
S = set(tuple(x[1]) for x in list1) result = [x for x in list2 if tuple(x[1]) not in S]
Use one list as search key for another list with sublist of list
|
|
Messages In This Thread |
Use one list as search key for another list with sublist of list - by jc4d - Nov-30-2021, 08:45 AM
RE: Use one list as search key for another list with sublist of list - by Gribouillis - Nov-30-2021, 09:07 AM
RE: Use one list as search key for another list with sublist of list - by jc4d - Jan-10-2022, 09:19 AM
RE: Use one list as search key for another list with sublist of list - by jc4d - Jan-11-2022, 10:37 AM
RE: Use one list as search key for another list with sublist of list - by jc4d - Jan-11-2022, 12:10 PM
|