Obtenez tous les sous-ensembles d'une liste Python

a_set = {"a", "b", 1, 2}
data = itertools.combinations(a_set, 2)
subsets = set(data)
print (subsets)
Thermodynamic Hamster