circuitpython/tests/basics/set_add.py

4 lines
50 B
Python

s = {1, 2, 3, 4}
print(s.add(5))
print(sorted(s))