how to get all subsets of a list python code example
Example: get all subsets of a list python
a_set = {"a", "b", 1, 2}
data = itertools.combinations(a_set, 2)
subsets = set(data)
print (subsets)
a_set = {"a", "b", 1, 2}
data = itertools.combinations(a_set, 2)
subsets = set(data)
print (subsets)