Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
set
set
Return a new set object, optionally with elements taken from iterable.
Python 3.13
1
set
(
iterable
)
Examples
Python 3.13
1
set
(
[
1
,
2
,
2
,
3
]
)
{1, 2, 3}