circuitpython/tests/basics/set_clear.py

4 lines
49 B
Python

s = {1, 2, 3, 4}
print(s.clear())
print(list(s))