Nov-30-2021, 08:45 AM
Hello,
I have two lists that returns some vector values with it's own name:
list1 = [['orange', [1, 2, 3]]]
list2 = [['apple', [1, 2, 3]], ['banana', [1, 2, 3]], ['pear', [-1, 2, 3]], ['kiwi', [-1, -2, 3]]].
I would need to use the list1 as a "search key" and ignoring the string on the list2 and print out the sublist that are not the same than in list1, which in theory should be:
newlist = [['pear' [-1, 2, 3], ['kiwi', [-1, -2, 3]]]
Could anyone give me a light on this?
I have two lists that returns some vector values with it's own name:
list1 = [['orange', [1, 2, 3]]]
list2 = [['apple', [1, 2, 3]], ['banana', [1, 2, 3]], ['pear', [-1, 2, 3]], ['kiwi', [-1, -2, 3]]].
I would need to use the list1 as a "search key" and ignoring the string on the list2 and print out the sublist that are not the same than in list1, which in theory should be:
newlist = [['pear' [-1, 2, 3], ['kiwi', [-1, -2, 3]]]
Could anyone give me a light on this?