circuitpython/tests/basics/set_discard.py

4 lines
46 B
Python

s = {1, 2}
print(s.discard(1))
print(list(s))