Python Function Reference

add
Add element elem to the set.
Python 3.13
set.add(elem)
Examples
Python 3.13
s = {1, 2}
s.add(3)
{1, 2, 3}