Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all subsets of a list python

a_set = {"a", "b", 1, 2}
data = itertools.combinations(a_set, 2)
subsets = set(data)
print (subsets)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #subsets #list #python
ADD COMMENT
Topic
Name
1+4 =