Jan-11-2022, 12:10 PM
I got help on other site but I wanted to share the solution just in case anyone else has the same problem.
list1 = [['orange', [1, 2, 3]]] list2 = [['apple', [1, 2, 3]], ['banana', [1, 2, 3]], ['pear', [-1, 2, 3]], ['kiwi', [1, -2, 3]]] y = [x for x in list2 if x[1][0] not in [a[1][0] for a in list1]] print(y)