How can I get this set of sets?
{{1},{2},{3},{4},{5}}
How can I get this set of sets?
{{1},{2},{3},{4},{5}}
set aren't hashable so you can't put set inside a set. However, you can make a set of frozenset...
{frozenset([1]), frozenset([2])}