Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
add
add
Add element elem to the set.
Python 3.13
1
set
.
add
(
elem
)
Examples
Python 3.13
1
2
s
=
{
1
,
2
}
s
.
add
(
3
)
{1, 2, 3}