Python Function Reference

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}