I have a set of values and would like to create list of all subsets containing 2 elements.
For example, a source set ([1,2,3]) has the following 2-elem
([1,2,3])
This is a subset of the power set of {1, 2, 3} (or whatever set) containing all two-element sets.
{1, 2, 3}
See the Python itertools documentation and search on the term "powerset" for a general answer to this problem.