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
If it is just two elements you are de-sequence them. But I am not sure, what you are trying to do here with the frozenset
>>> s = frozenset([1,2]) >>> s frozenset({1, 2}) >>> x,y = s >>> x 1 >>> y 2