I would like to make a pair of two elements. I don\'t care about the order of the elements, so I use frozenset.
frozenset
I can think of the following two methods t
pair = frozenset([element1, element2]) elem1, elem2 = pair