micropython/tests/basics/set_discard.py

4 lines
46 B
Python
Raw Normal View History

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