I have a list of lists as shown below:
[['Person1', 'www.google.co.uk', '1'], ['Person2', 'www.amazon.co.uk', '2'],['Person3', 'www.google.co.uk', '2']]
In my other list I have:
[['Person1', 'www.google.co.uk'], ['Person3', 'www.ebay.co.uk']]
My desired output would be:
[['Person2', 'www.amazon.co.uk', '2'],['Person3', 'www.google.co.uk', '2']]
So if it already exists in the other list then remove that list from the original list. Is something like this possible if I do not store the 3rd value of the lists?
Code Tried:
ComparedList = [v for v in NewList if v not in List]