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
set
(
iterable
)
Examples
Python 3.13
>>
>
set
(
[
1
,
2
,
2
,
3
]
)
{
1
,
2
,
3
}