Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
set.copy
set.copy
Return a new set with a shallow copy of s.
Python 3.13
set
.
copy
(
)
Examples
Python 3.13
>>
>
s1
=
{
1
,
2
}
>>
>
s2
=
s1
.
copy
(
)
{
1
,
2
}