Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
set.update
set.update
Update the set, adding elements from all others.
Python 3.13
set
.
update
(
*
others
)
*others
Other sets.
Examples
Python 3.13
>>
>
s
=
{
1
,
2
}
>>
>
s
.
update
(
{
3
,
4
}
)
{
1
,
2
,
3
,
4
}