micropython/tests/basics/set_discard.py

4 wiersze
46 B
Python

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