Answers for "get all subsets of a list python"

0

get all subsets of a list python

a_set = {"a", "b", 1, 2}
data = itertools.combinations(a_set, 2)
subsets = set(data)
print (subsets)
Posted by: Guest on April-20-2021

Code answers related to "get all subsets of a list python"

Python Answers by Framework

Browse Popular Code Answers by Language