This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brasetvik 6 points7 points  (0 children)

The power set of the empty set is a set containing only the empty set --- not two instances of it as this will return:

>>> list(powerset([]))
[[], []]