ID EN
Built-in Types

set

Python 3.11

Return a new set or frozenset object whose elements are taken from iterable. The elements of a set must be hashable. To represent sets of sets, the inner sets must be frozenset objects. If iterable is not specified, a new empty set is returned.

Syntax

PYTHON
class set([iterable])

See Also

hashable frozenset set frozenset union() intersection() difference() symmetric_difference()