I have a list of tuples in python.
list = [(1,2), (1,3), (1,4), (2,3), (2, 4), (3,4)]
How can i print all of the possible pairs of tuples? I want to avoid duplication. For example (1,2), (2,3) and (2,3), (1,2) are duplicated.
The expected result is:
(1,2), (1,3)
(1,2), (1,4)
(1,2), (2,3)
(1,2), (2,4)
(1,2), (3,4)
(1,3), (1,4)
(1,3), (2,3)
(1,3), (2,4)
(1,3), (3,4)
(1,4), (2,3)
(1,4), (2,4)
(1,4), (3,4)
(2,3), (2,4)
(2,3), (3,4)
(2,4), (3,4)