I have a list of lists in Python3, where the data looks like this:
['Type1', ['123', '22'], ['456', '80']]
['Type2', ['456', '80'], ['123', '22']]
The list is quite large, but the above is an example of duplicate data I need to remove. Below is an example of data that is NOT duplicated and does not need to be removed:
['Type1', ['789', '45'], ['456', '80']]
['Type2', ['456', '80'], ['123', '22']]
I've already removed all the exact identical duplicates. What is the fastest way to accomplish this "reversed duplicate" removal in Python3?
[123,22]and[456,80]but in different order. The second is not a dupe because, though they both have[456,80], the other sublists are different. Is that what you're getting at? Does the order matter inside the sub-lists (can[1,2]and[2,1]be considered identical sublists)?Type1list or inType2list ?