I have a generator of tuples and I need to delete tuples containing same elements. I need this output for iterating.
Input = ((1, 1), (1, 2), (1, 3), (3, 1), (3, 2), (3, 3))
Output= ((1, 1), (1, 2), (1, 3))
Order of output doesn't matter.
I have checked this question but it is about lists: Delete duplicate tuples with same elements in nested list Python
I use generators to achieve fastest results as the data is very large.