circuitpython/tests/basics/set_discard.py

4 lines
46 B
Python
Raw Normal View History

2014-01-12 11:39:39 -05:00
s = {1, 2}
print(s.discard(1))
print(list(s))