1 | initial version |
Using Sage code:
sage: X = Set([1, 3, "two"]) # note capital S
sage: X.subsets()
Subsets of {1, 3, 'two'}
sage: X.subsets(size=2)
Subsets of {1, 3, 'two'} of size 2
sage: X.subsets(size=2).list()
[{1, 3}, {1, 'two'}, {3, 'two'}]